Page 1 of 1

EPS to JPG Convert Problems

Posted: 2012-03-16T08:44:04-07:00
by pjvedder
I'm using ColdFusion and ImageMagick to convert client-uploaded images to web-friendly jpgs thumbnails. I'm having some problems, however, with some EPS files. The problem is that if I don't change the colorspace to RGB (the files uploaded are usually CMYK), then the thumbnails will appear as negatives in some browsers (mostly Safari on a mac/ipad). However, if I change the colorspace to RGB, it adds a green hue to the image. Has anyone come across this before, or know of anything I can do to fix or circumvent this problem?

Here is the code I'm using:

Code: Select all

<cfexecute name="C:\Program Files\ImageMagick-6.7.0-Q16\convert.exe"
    arguments="-colorspace RGB -density 72 2927-K135A_SU10.jpg  -flatten -strip -thumbnail 150x150 thumbs\2927-K135A_SU10.jpg"
    timeout="5000"
    variable="debugReport"
    />
Here is the original image:
http://dl.dropbox.com/u/14916695/Image_1.eps

Here is the resulting Jpg thumbnail
http://dl.dropbox.com/u/14916695/Image_1_Thumb.jpg

Thanks in advance for any help on the matter!

Re: EPS to JPG Convert Problems

Posted: 2012-03-16T10:55:24-07:00
by fmw42
As of IM 6.7.5.5 -colorspace RGB and -colorspace sRGB have been switch to correct the meaning.

In my IM 6.7.6.0 Mac OSX Snow Leopard, the following looks perfectly fine to me.


convert -colorspace sRGB -density 72 image_1.eps -flatten -strip -thumbnail 150x150 image_1_small_srgb.jpg

Image



Whereas using -colorspace RGB is darker.

convert -colorspace sRGB -density 72 image_1.eps -flatten -strip -thumbnail 150x150 image_1_small_rgb.jpg

Image