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

0 votes
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 (177,280 points)
selected Jul 8 by Anthony-Gaudino
 
Best answer

In the last beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
You can have :

@startuml
scale max 50 height
class Foo1
class Foo2
@enduml

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:
set PLANTUML_LIMIT_SIZE=100
or
setenv PLANTUML_LIMIT_SIZE 100

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
...