Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating dot graph got blank png image #11

Open
aleung opened this issue Oct 21, 2016 · 1 comment
Open

Generating dot graph got blank png image #11

aleung opened this issue Oct 21, 2016 · 1 comment
Labels

Comments

@aleung
Copy link

aleung commented Oct 21, 2016

Generates dot graph from below source, the output png file is blank.

puml generate test.puml -p > test.png
@startdot
digraph foo {
  node [style=rounded]
  node1 [shape=box]
  node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
  node3 [shape=record, label="{ a | b | c }"]

  node1 -> node2 -> node3
}
@enddot

Generation of svg is ok.

puml generate test.puml -s > test.svg

puml version is 0.5.0

@markushedvall
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants