Posted: 2006-09-11T13:49:05-07:00
If ghostscript had one robust device to handle RGB, RGBA, CMYK, and CMYKA image types (RGB and CMYK with and without transparency) ImageMagick would be able to render Postscript to an image format quite robustly. However, ImageMagick has to select from different devices based on what it sees in the Postscript document. It chooses the device conservatively to ensure the conversion is proper for a great majority of Postscript documents. The devices available include a monochrome device, a RGB device, a RGBA device, and a CMYK device. Given that, to fix this problem you need a Ghostscript version that supports the RGBA device (pngalpha) at the time ImageMagick is built. Type
- gs -h
- <delegate decode="ps:alpha" stealth="True" command='"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -dEPSCrop "-sDEVICE=pngalpha" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-g%s" "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s"' />
- %%LanguageLevel: 3
- convert -colorspace rgb clipart2.eps clipart.gif
- /usr/local/lib/ImageMagick-6.2.9/config/delegates.xml