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

Format: "png" not recognized. #254

Open
jasonculligan opened this issue Nov 2, 2024 · 1 comment
Open

Format: "png" not recognized. #254

jasonculligan opened this issue Nov 2, 2024 · 1 comment

Comments

@jasonculligan
Copy link

When following the second example on the readme an error is thrown:

$ ./tm.py --dfd | dot -Tpng -o tm/dfd.png
Format: "png" not recognized.
$ dot -V
dot - graphviz version 2.50.0 (20211204.2007)
@raphaelahrens
Copy link
Contributor

raphaelahrens commented Nov 2, 2024

Hi,

the version of dot you are using is quite old and you don't mention what OS your are using, so it is difficult to figured out what is causing this.

In Version 3.0 the Graphivz team fixed some issue with building png image.
https://gitlab.com/graphviz/graphviz/-/blob/main/CHANGELOG.md?ref_type=heads#300--2022-02-26
So if you want to have a png you will need to fix the problem of GraphivZ on your system.

You can of course also try to build a JPEG, PostScript, or SVG, with -Tjpeg, -Tps or -Tsvg instead of -Tpng.

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

No branches or pull requests

2 participants