Scale on EPS drops colors

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
zeroeight15

Scale on EPS drops colors

Post by zeroeight15 »

Have a problem when scaling some types of EPS:
This is one of the EPS: http://aiedv.ch/img/ZfKlogo.eps.zip
And this is the command I use:

Code: Select all

convert "ZFKlogo.eps" -scale 32% -colorspace RGB "ZFKlogo.jpg"
What happens:
The logo has 3 letters 'ZfK'. Z and K are drawn with transparent color black, f is (background) white
The black letters are dropped when using above command. No matter which output format (jpeg, png....)
If the command is given WITHOUT '-scale 32%' then all is well.
Using OSX 10.5.8 and ImageMagick 6.6.5, Ghostscript 8.70 or 9.00

The same command, including -scale 32%, works fine with older IM 6.5.5

Have more of such 'failing' EPS, most of them are logos or drawings created with Adobe Illustrator. All of them convert/scale fine with IM 6.5.5.

Any advice?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Scale on EPS drops colors

Post by magick »

Edit the delegates.xml configuration file and change the "pam" device to "pnm". There is either a bug in Ghostscript's PAM device or there is one in ImageMagick. We're investigating.
zeroeight15

Re: Scale on EPS drops colors

Post by zeroeight15 »

YES! Thanks a lot! safed my day!
changing the line's sDEVICE
<delegate decode="ps:cmyk" stealth="True" command... -sDEVICE=pam ....
from device 'pam' to 'pnm' now actually seems to work for ALL the EPS files.

Just to mention: I have made many many tests, the result seems to be, that the Ghostscript version 8.7 AND the newest available 9.00 work fine with IM 6.6.5 after changing above mentioned line.
Thanks again
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Scale on EPS drops colors

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.6.5-8, available now for download. Thanks.
zeroeight15

Re: Scale on EPS drops colors

Post by zeroeight15 »

YES, Thanks! problem solved.
Post Reply