Ask Your Question

How to add jpeg format to dot (directed graphics command)

asked 2018-10-22 13:19:00 -0600

lovepump gravatar image

I am trying to create a jpeg using "dot" command, as follows:

    dot -Tjpg -o titanic.jpg

dot complains that jpg isn't a recognized format. I am able to produce a png, but I would like a jpg. The manual page states that jpg is usually one of the built-in formats it is capable of. However, on Fedora 28 I get the following error:

Format: "jpg" not recognized. Use one of: canon cmap cmapx cmapx_np dot dot_json eps fig gv imap imap_np ismap json json0 mp pdf pic plain plain-ext png pov ps ps2 svg svgz tk vml vmlz xdot xdot1.2 xdot1.4 xdot_json


edit retag flag offensive close merge delete



Its possible that the version of dot that you're using doesn't have jpeg support complied in as your output doesn't mention jpeg/jpg. On my F27, my format string has "jpeg:cairo:gdk jpg:cairo:gdk".

aminjohann gravatar imageaminjohann ( 2018-10-22 17:21:48 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-22 15:03:18 -0600

HXH gravatar image

Would you happen to have the correct supporting libs? I read that you can see what your system is capable of by running

dot -T?

but wouldn't know myself having never used it. The man page at , however, didn't mention jpg as a output type... i am not on my Fedora rig to see the actual Fedora installed man page.

I hope it helps and sorry if it does not.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-22 13:19:00 -0600

Seen: 185 times

Last updated: Oct 22 '18