Image paths are relative to the application path and not the working directory

+2 votes
asked May 28, 2014 in Bug by blochberger (200 points)

I want to create a state diagram with an image shown in the state body/description.

My folder structure:

  • working_directory/
    • states.pu
    • state1.png
    • state2.png

My states.pu:

@startuml
state state1
state state2
state1 : <img state1.png>
state2 : <img state2.png>
[*] --> state1
state1 --> state2
@enduml

Now when I want to render the graph using PlantUML the images are not included but an error is shown that the images could not be found at the location where PlantUML is stored, fe. /Applications/

I'd make the image search path relative to the pu-file if not an absolute path to the image is given.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...