Open aleung opened 7 years ago
I was able to reproduce it, however it's not that the png file is empty. It's missing some information. Some applications could open it, while others couldn't. You could also check the size of the file and see that it's not empty.
So next I tried to use the plantuml jars command line. Without using stdin and stdout the resulting png is fine:
java -Djava.awt.headless=true -jar plantuml.jar -tpng test.puml
However when using stdin and stdout I get a broken png file:
cat test.puml | java -Djava.awt.headless=true -jar plantuml.jar -tpng -p > test.png
So this is problem with plantuml and using stdout and not node-plantuml. From a running a few tests this only seems to be a problem when using dot syntax.
Generates dot graph from below source, the output png file is blank.
Generation of svg is ok.
puml generate test.puml -s > test.svg
puml version is 0.5.0