Page 1 of 1

converting ps to miff and adding transparency

Posted: 2008-02-02T06:25:53-07:00
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

Re: converting ps to miff and adding transparency

Posted: 2008-02-03T17:46:21-07:00
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!