Exporting from dia on the command line

I use dia for network maps. Turns out you can export to PNG directly from the command line like so:

dia --export foo.png --filter=png foo.dia

However, if you do that the resolution is terrible. The undocumented way around this is to install libart and then use "--filter=png-libart" for exporting. On Ubuntu, that's:

sudo apt-get install libart
dia --export foo.png --filter=png-png foo.dia

Much better!