GNOME Bugzilla – Bug 155495
Command line --export produce bad output
Last modified: 2005-10-08 19:59:58 UTC
When I convert my *.DIA to *.PNG on the command line, the output is bad (distorted colors etc). When done interactively inside Dia, it works fine. I get a lot of warnings as well. You can download the *.dia file from <http://josefsson.org/components.dia>. jas@latte:~/src/shishi/doc$ dia --export=png --export-to-format=png components.dia ** (dia-python:31351): WARNING **: No attribute type ((nil)) or no data((nil)) in this attribute (dia-python:31351): GLib-CRITICAL **: file gstrfuncs.c: line 1821 (g_strcasecmp): assertion `s1 != NULL' failed ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w/o color_init()) ** (dia-python:31351): WARNING **: Can't color_convert in non-interactive app (w
Created attachment 32635 [details] Bad output generated by dia --export
Created attachment 32636 [details] Dia input file
There are two workarounds for this behaviour (and is nothing to do with your file ;-) : - disable the pixbuf filter (the one which does not antialias but requires color_convert() - request the exact filter by: /opt/bin/dia --export=delme.png --export-to-format=png-libart render-test.dia Just applied the following fix to cvs: 2004-10-31 Hans Breuer <hans@breuer.org> * plug-ins/pixbuf/pixbuf.c : when running non interactive Dia won't call color_init() as it assumes no display. If we have one as tested ourselve we can as well color_init() to avoid g_warnings() and produce the right collors. Fixes bug #155495. * app/app-procs.c : try to be a little more helpful and correct with regard to the command line options. Renamed --export-to-format to --export-filter and some other string changes
Adjusting target to help finding 0.94 dups already fixed