EPS to PNG Transparency, help!

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Acestes

EPS to PNG Transparency, help!

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPS to PNG Transparency, help!

Post by magick »

Can you post a URL to one of your EPS files so we can download and test.
Acestes

Re: EPS to PNG Transparency, help!

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPS to PNG Transparency, help!

Post 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.
Acestes

Re: EPS to PNG Transparency, help!

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EPS to PNG Transparency, help!

Post by magick »

Download ImageMagick 6.3.6-8 and use the -colorspace rgb option as we suggested. That should produce PNG images with transparency.
Acestes

Re: EPS to PNG Transparency, help!

Post 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.
Post Reply