Page 1 of 1

incorrect transparency handling when converting to EPS

Posted: 2007-03-03T15:55:26-07:00
by donovaly
- convert this XPM-image:
http://fkurth.de/uwest/usti/tabular-insert.xpm
to EPS. The result is this:
http://fkurth.de/uwest/usti/tabular-insert.eps

The XPM-image uses transparent pixels that are incorrectly painted black in the EPS. When converting the XPM-image to any other format, the result is correct so I don't know if this is a bug in Ghostscript or in the way ImageMagick addresses Ghostscript.

Re: incorrect transparency handling when converting to EPS

Posted: 2007-03-07T23:57:34-07:00
by anthony
IM does not use ghostscript to write EPS, its needed for reading EPS, not write.

Re: incorrect transparency handling when converting to EPS

Posted: 2007-03-08T05:15:06-07:00
by donovaly
So then it's a bug in ImageMagick that the transparent pixels are painted black. If EPS doesn't support transparencies, the transparent pixels should be painted white as this is the case for any other conversions made by IM and also other graphic programs.

Re: incorrect transparency handling when converting to EPS

Posted: 2007-03-08T22:19:01-07:00
by anthony
You can paint transparency white using
-background white -flatten
before the final save.
As for transparency in EPS output. I don't know. Sorry.
You are the first to have a problem with EPS output, rather than EPS input.