How can I get high quality (antialiased) output?

The easiest thing may be to make the layout in Postscript (option -Tps), then run through Ghostview with antialiasing enabled. The important command line options are -dTextAlphaBits=4 -dGraphicsAlphaBits=4 (4 is the highest level of antialiasing allowed - see the Ghostview documentation). The full command line to render a raster could be something like:

  • gs -q -dNOPAUSE -dBATCH -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sDEVICE=png16m -sOutputFile=file.png file.ps

On Mac OS X, the pixelglow port uses Apple's Quartz renderer, which enables antialiasing. It also provides a beautiful document container for its user interface. (One downside is that you can't run Pixelglow Graphviz as a web server or other background process if your Mac has 3D graphics, because Quartz wants to get this resource to accelerate rendering. Another problem is that as of this writing, Pixelglow Graphviz hasn't been updated in a long time, maybe mid 2004.)

Graphviz has an plugin to use the cairo back end, which has antialiased, path-based graphics. If you want this, you must install cairo and pango, which are not part of Graphviz.

GraphvizWiki: FaqQuality (last edited 2008-01-16 20:31:51 by H-135-207-131-158)