Page 1 of 1

EPS to PNG Transparency, help!

Posted: 2007-12-27T11:19:15-07:00
by Acestes
Hi,

I'm trying to convert an EPS file that has a transparent background (or no background) to a PNG. However when I convert the file the background becomes white. I've done a search of the forum which pointed me in the direction of Postscript usage However no matter how hard I try it just doesn't work. I've tried with multiple EPS files and I've even tried using EPS files that I didn't create in case it was something that I had done to the EPS. I'm using the binary 'ImageMagick-6.3.7-7-Q16-windows-dll.exe' with postscript 8.6.0 (I couldn't use 8.6.1 as there is currently no windows binary). If anyone can help I would be most grateful.

Re: EPS to PNG Transparency, help!

Posted: 2007-12-27T13:36:33-07:00
by magick
Can you post a URL to one of your EPS files so we can download and test.

Re: EPS to PNG Transparency, help!

Posted: 2007-12-28T04:25:42-07:00
by Acestes
Hi,

Here are a couple of EPS files (http://homepage.ntlworld.com/custom.consoles/temp/) that I have tried converting to PNG files. One I generated myself the other I found on the web. I'm now also using the latest version of postscript (8.6.1) as I was able to find a windows binary, but still no success. Thanks.

Edit: this is the script I'm using

Code: Select all

convert -channel RGBA logo.eps -background none logo.png

Re: EPS to PNG Transparency, help!

Posted: 2007-12-28T07:46:18-07:00
by magick
Edit logo.eps and change the language level from 2 to 1 and use this command:
  • convert -verbose -colorspace rgb logo.eps logo.png
In the mean-time we'll get a patch into ImageMagick to fix this probem for the next release.

Re: EPS to PNG Transparency, help!

Posted: 2007-12-28T09:04:24-07:00
by Acestes
Thanks for the help. Unfortunately Adobe Illustrator CS2 won't let you save as language level 1, the lowest you can go is 2. However even when I tried Corel Draw X3 which will save as level 1 it still didn't work using your command.

Do you know what sort of time scale we are looking at for a fix? Also is there some way we can 'sign up' for information on new releases.

Thanks.

Re: EPS to PNG Transparency, help!

Posted: 2007-12-28T09:41:08-07:00
by magick
Download ImageMagick 6.3.6-8 and use the -colorspace rgb option as we suggested. That should produce PNG images with transparency.

Re: EPS to PNG Transparency, help!

Posted: 2007-12-28T09:58:13-07:00
by Acestes
Sorry, I was using the wrong version of ImageMagick :oops: (this is what happens when you install very old versions trying to see if it is a 'new bug' and then forget you did that). So having tried it (-colorspace rgb) with the new version I can confirm it works! Thank you for all the help and I look forward to any new releases :D

Edit: This fix only works if I save as postscript level 3, level 2 still does not work.