- 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.
incorrect transparency handling when converting to EPS
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: incorrect transparency handling when converting to EPS
IM does not use ghostscript to write EPS, its needed for reading EPS, not write.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: incorrect transparency handling when converting to EPS
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: incorrect transparency handling when converting to EPS
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.
-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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/