Fruchtzwerg94 / PlantUmlViewer

A Notepad++ plugin to generate, view and export PlantUML diagrams
MIT License
82 stars 9 forks source link

Place an png-img to the header leads to "Cannot Decode" #34

Open SieDa opened 6 hours ago

SieDa commented 6 hours ago

Description As #30 fixed the !include (support ./ and ../ and the %dirpath(), %filename() usage in this PlugIn, there are two issues left in that example - might be, they are related somehow:

1. the header image As shown in #30 code example, if you remove the comment, the simple placement of an png-img still leads to the error message: "Cannot Decode", while this is processed correctly in the git bash command line for the same PlantUML Version.

Expected behavior

left header
<img: src="image.png"{scale=0.12}>
end header

Should place an img to the header, which is in the same directory as the source file, and relative paths should work as well: ./imgage.png or ../img/image.png should work as well.

Is it possible to specify, that the embedded image can be defined as SVG and that the output is directly povided in high quality and well readable SVG in any scaling?

2. the access to global variables: I tried to output the JAVA_HOME global variable - still does not work.

Environment

Referencing I recognized some discussions adressing such similar to other plugins / SVG usage, but can not identify any help from that in N++:

Fruchtzwerg94 commented 5 hours ago
  1. I can't reproduce your issue since relative images are resolved like expected as you can see here: grafik

  2. What exactly do you mean with

    I tried to output the JAVA_HOME global variable

Why and how are you trying to output it? Please be more specific about your issue / problem.

BR, Philipp

SieDa commented 2 hours ago
  1. if the file is missing - tiny typo - the error message is "Cannot Decode" (sorry).
  2. As in my example in #30 I tried both with and without $ - result is empty:
    %getenv("$JAVA_HOME")
    %getenv("JAVA_HOME")
    %get_variable_value("JAVA_HOME")
    %get_variable_value("$JAVA_HOME")

While in git bash: echo $JAVA_HOME provides the path to the JRE.