Currently, dia can not convert diagrams to other file formats from the command line when the target file name does not end in a normal extension. For example, dia can convert foo.dia to bar.png using: dia -n -e bar.png foo.dia or from foo.dia to foo.png using: dia -n -t png foo.dia However, I can not do the following: TMPFILE=`mktemp /tmp/image.XXXXXX` dia -n -t png -e $TMPFILE foo.dia (output does not end in .png) Enclosed you should find a proposed patch. It should make it so that '-t' and '-e' are not mutually exclusive. I would be very interested to hear comments about my patch and alternatives. -- Mike :wq
Attachment:
dia-20031009-exportformat.patch
Description: Text document