Please provide a command line parameter to generate PNG images larger than 4096 pixels tall

+1 vote
asked Feb 2, 2016 in Closed feature request by anonymous
Please provide a command line parameter to generate PNG images larger than 4096 pixels tall.

Another useful extension would be to allow setting just one of the dimensions to a maximum value, e.g. "scale max 5000 height ", which would allow just the height size to exceed the default limit. Currently it is not possible to set the max size for just one dimension.

1 Answer

0 votes
answered Feb 2, 2016 by plantuml (295,000 points)
selected Jul 8, 2018 by Anthony-Gaudino
Best answer

In the last beta:
You can have :

scale max 50 height
class Foo1
class Foo2

There is an additional setting: you can define a environment variable PLANTUML_LIMIT_SIZE (which default value is 4096).
You have to define this env variable before launching PlantUML.
Something like:

Another way is an option in the command line:
java -DPLANTUML_LIMIT_SIZE=70 -jar c:/ant/lib/plantuml.jar -v foo1.txt

This has not been highly tested, so feedback is welcome.

commented Feb 3, 2016 by anonymous
This seemed to work nicely at least using the environment variable method. Also the new scal syntax seems to work based on the very limited tests I have done.

Thanks a lot for the very quick response.

Regards, Ville
commented Aug 22, 2018 by DDDsa (200 points)

>Another way is an option in the command line:
>java -DPLANTUML_LIMIT_SIZE=70 -jar c:/ant/lib/plantuml.jar -v foo1.txt

As far as I understood the -DPLANTUML_LIMIT_SIZE parameter MUST go before -jar parameter. So this won't work:

java -jar c:/ant/lib/plantuml.jar -DPLANTUML_LIMIT_SIZE=70 foo1.txt

This is very annoying because mostly we use plantuml from launcher which is installed by apt into /usr/bin/plantuml

The launcher contents finish by the line

$JAVA -jar /usr/share/plantuml/plantuml.jar ${@}

So if we run plantuml launcher with parameters they will automatically go AFTER -jar parameter so this won't work again:

plantuml -DPLANTUML_LIMIT_SIZE=70 foo1.txt
commented Aug 24, 2018 by plantuml (295,000 points)
This has just been fixed in last beta
You can now also have :

java -jar c:/ant/lib/plantuml.jar -DPLANTUML_LIMIT_SIZE=70 foo1.txt

Tell us if it's not working for you
commented Aug 24, 2018 by DDDsa (200 points)
This one works!
Thank you for super-fast response, as always!