EPS to JPG Convert Problems

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
pjvedder
Posts: 12
Joined: 2011-06-22T12:39:02-07:00
Authentication code: 8675308

EPS to JPG Convert Problems

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS to JPG Convert Problems

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