Converting EPS to transparent GIF

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

Post by magick »

ImageMagick supports transparent Postscript to GIF if you have a modern version of ImageMagick and the file only contains one page and there is a DSC comment within the file specifying a language level of 2.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Your Postscript has CMYK colors so it's rendered with a CMYK device rather than an alpha device. However, with the latest ImageMagick release, 6.2.6-6, we got the desired result by forcing an alpha device as follows:
  • convert -colorspace rgb clipart.eps transparent.gif
6.2.6-6 will mirror world-wide by tommorrow.
Last edited by magick on 2006-03-28T20:53:10-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Type
  • convert -verbose -colorspace rgb clipart.eps clipart.gif
Is the listed device pnmraw or pngalpha? Its possible that your version of Ghostscript does not support the pngalpha device. To confirm type
  • gs -h
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You might be able to simply upgrade your version of Ghostscript to enable the pngalpha device. If not you can grab the source and make sure pngalpha is enabled when you build/install. Have fun.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

SVG is the recommended vector format. If ImageMagick fails to convert your SVG you can always use rsvg which does a great job of interpretting SVG.
Post Reply