Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include images? #59

Open
DaRolla opened this issue Apr 26, 2024 · 0 comments
Open

How to include images? #59

DaRolla opened this issue Apr 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@DaRolla
Copy link

DaRolla commented Apr 26, 2024

I'd like to reference an image, a PNG file.

In general it works like this:

@startuml

!theme superhero

!RancherPNG = "<img:img/Rancher256.png{scale=0.5}>"

skinparam defaultTextAlignment center
left to right direction

package "Microsoft Windows 11 Pro" {
    label "RancherPNG\nRancher Desktop" as Rancher
}

@enduml

In my example the image file Rancher256.png is located in the subfolder img relative to the puml file.

I tried to put the image into the same folder within Obsidian, without any success.

Then I tried something like

!RancherPNG = "<img:[[[Rancher256.png]]]{scale=0.5}>"

without any success.

Can you please show me how this is done?

Cheers,
DaRolla

@DaRolla DaRolla added the enhancement New feature or request label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant