使用
$ dot -Tgd input.dot
$ dot -Tgd2 input.dot

GD/GD2

LibGD

GDGD2 格式 中输出图像。这些是 gd 库 使用的内部格式。gd2 是压缩的。