Output Formats

Various graphic and data formats for end user, web, documents and other applications.
Format Command-line parameter Description
BMP bmp

Windows Bitmap

CGImage cgimage

Apple Core Graphics

DOT canon
dot
gv
xdot
xdot1.2
xdot1.4

Graphviz Language

EPS eps

Encapsulated PostScript

EXR exr

OpenEXR

FIG fig

Xfig

GD/GD2 gd
gd2

LibGD

GIF gif

Graphics Interchange Format

GTK gtk

Formerly GTK+ / GIMP ToolKit

ICO ico

Windows Icon

Imagemap imap
imap_np
ismap
cmap
cmapx
cmapx_np

Image Map: Server-side and client-side

JPEG jpg
jpeg
jpe

Joint Photographic Experts Group

JPEG 2000 jp2

JSON json
json0
dot_json
xdot_json

JavaScript Object Notation

PDF pdf

Portable Document Format

PIC pic

Brian Kernighan's Diagram Language

PICT pct
pict

Apple PICT

Plain Text plain
plain-ext

Simple, line-based language

PNG png

Portable Network Graphics

POV-Ray pov

Persistence of Vision Raytracer (prototype)

PS ps

Adobe PostScript

PS/PDF ps2

Adobe PostScript for Portable Document Format

PSD psd

Photoshop

SGI sgi

Silicon Graphics Image

SVG svg
svgz

Scalable Vector Graphics

TGA tga

Truevision TARGA

TIFF tif
tiff

Tag Image File Format

Tk tk

Tcl/Tk

VML vml
vmlz

Vector Markup Language.

VRML vrml

Virtual Reality Modeling Language

WBMP wbmp

Wireless Bitmap

WebP webp

WebP

X11 xlib
x11

X11 Window

The output format is specified with the -Tlang flag on the command line, where lang is one of the parameters listed above.

The formats actually available in a given Graphviz system depend on how the system was built and the presence of additional libraries. To see what formats dot supports, run dot -T?. See the description of the -T flag for additional information.

Note that the internal coordinate system has the origin in the lower left corner. Thus, positions in the canon, dot, xdot, plain, and plain-ext formats need to be interpreted in this manner.


Image Formats

The image and shapefile attributes specify an image file to be included as part of the final diagram. Not all image formats can be read. In addition, even if read, not all image formats can necessarily be used in a given output format.

The graph below shows what image formats can be used in which output formats, and the required plugins. On the left are the supported image formats. On the right are the supported output formats. In the middle are the plugins: image loaders, renderers, drivers, arranged by plugin library. This presents the most general case. A given installation may not provide one of the plugins, in which case, that transformation is not possible.


ID Output Note

In the formats: -Tcmap, -Tcmapx, -Tsvg, -Tvml, the output generates id="node#" properties for nodes, id="edge#" properties for edges, and id="cluster#" properties for clusters, with the # replaced by an internally assigned integer. These strings can be provided instead by an externally provided id=xxx attribute on the object. Normal \N \E \G substitutions are applied. Externally provided id values are not used internally, and it is the user's reponsibilty to ensure that they are sufficiently unique for their intended downstream use. Note, in particular, that \E is not a unique id for multiedges.