Usage:

$ dot -Tgd input.dot
$ dot -Tgd2 input.dot

GD/GD2

LibGD

Output images in the GD and GD2 format. These are the internal formats used by the gd library. gd2 is compressed.