How to convert dot file to image format

The dot file is a textual file format used to represent graphs. The dot program, which ships with GraphViz, can be used to convert the dot file into file formats that help visualize the graph. Some of the supported output file formats include PNG, PS and Dia.

For example, to convert to PNG:

$ dot foo.dot -Tpng -o foo.png

Tried with: GraphViz 2.26.3-10ubuntu1 and Ubuntu 12.04 LTS

One thought on “How to convert dot file to image format

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.