converting ps to miff and adding transparency

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
bablokb
Posts: 29
Joined: 2005-06-11T06:21:59-07:00

converting ps to miff and adding transparency

Post by bablokb »

Hi,

in one of my scripts I use the following line:

Code: Select all

convert /tmp/foo -rotate 90 -transparent white MIFF:/tmp/bar
/tmp/foo is a ps-file. This worked fine until I changed to release 6.3.5. Now the conversion works fine, but white is no longer transparent. Only if I code

Code: Select all

convert ps:/tmp/foo -rotate 90 -transparent white MIFF:/tmp/bar
everything works as before. So IM does figure out that /tmp/foo is ps, but it cannot convert white to transparency unless I explicitly tell IM it is ps ?!

My workaround is fine, but this strange behaviour seems like a bug to me.

Bernhard
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: converting ps to miff and adding transparency

Post by anthony »

It may be getting the PS type wrong. PS: detection depends on comments in the postscript file. However postscript has no such requirement that those comments exist!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply