JPEG from EPS does not display in IE

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
jpcain429

JPEG from EPS does not display in IE

Post by jpcain429 »

Greetings,

Have encountered an issue where JPEG files that we are converting from EPS files are not displaying in Internet Explorer (have confirmed this in IE6 and IE7 so far). We are simply using the ImageMagik command line as follows:

convert.exe source.eps target.jpg

The JPEG files open fine in the Firefox browser, and is quite a mystery to us as to why IE will not open them (they simply appear as a broken image link). Has anyone encountered this issue before, or can anyone offer any suggestions?

Best Regards,

Jim
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEG from EPS does not display in IE

Post by fmw42 »

Are your jpgs in cmyk format? If so, that may be the problem.

try (if you do not have internal profiles)

convert.exe -colorspace RGB source.eps target.jpg

otherwise, see http://www.imagemagick.org/Usage/formats/#profiles
Last edited by fmw42 on 2010-06-24T14:42:50-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: JPEG from EPS does not display in IE

Post by Bonzo »

There was a thread about this in the last month or so but I can not find it; Snibgo had some examples on his website but I can not find them either !
As fmw42 says some browsers may or may not display the image depending on the format/colour profile and some will display them incorrectly.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: JPEG from EPS does not display in IE

Post by snibgo »

I'd forgotten that: http://www.snibgo.org/improf.htm. Near the bottom, the CMYK JPG won't display in IE8. I suspect fmw's diagnosis is correct.

@jpcain429: If not, post the URL here and someone might suggest something else.
snibgo's IM pages: im.snibgo.com
jpcain429

Re: JPEG from EPS does not display in IE

Post by jpcain429 »

fmw42 wrote:Are your jpgs in cmyk format? If so, that may be the problem.

try (if you do not have internal profiles)

convert.exe -colorspace RGB source.eps target.jpg

otherwise, see http://www.imagemagick.org/Usage/formats/#profiles
Thanks for the suggestion. The jpegs were CMYK format. I instead used:

convert.exe -colorspace sRGB source.eps target.jpg

The sRGB colorspace resulted in a better image for me. Not sure if I will need to worry about profiles or not. Is that something I can test programmatically (perhaps using the identify command)?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEG from EPS does not display in IE

Post by fmw42 »

identify -verbose

should tell you what profiles you have or at least some hints of that information, but I am not an expert on profiles.
Post Reply