Some JPEGs Are Broken in IE7
Posted: 2012-01-06T17:15:29-07:00
Hi All,
I’m using ImageMagick 6.7.4 on 64-bit Windows Server 2003. It’s part of an image import process, which resizes hi-res JPEGs into thumbnails.
I have noticed that a subset of the original hi-res images don’t display in IE7 or IE8. They do display in other browsers, and they also display in Windows Explorer (as thumbnails) and Windows Picture and Fax Viewer (i.e. double click an image file in Windows XP). I think the problem is something to do with fancy JPEG metadata or suchlike, as these images are coming from photo studios. identify.exe tells me that some images use TIFF or PNG internally, even though the file has a .jpg extension.
My problem is that the thumbnails generated from these problematic JPEGs also don’t display in IE7 or IE8, but they do display everywhere else.
I therefore conclude that convert.exe is faithfully reproducing the metadata (or whatever) which causes IE7 to bomb out.
I’ve also noticed that some of the generated 70x70 thumbnails are greater than 500k in size - one is even greater than 1MB.
My manual solution is to do a screen capture while the image is being shown in Windows Picture and Fax Viewer and save that as a PNG. The generated thumbnail works fine in IE7.
So my question is: Can convert.exe be instructed to throw away the metadata when writing a JPEG? Or alternatively, can ImageMagick somehow automate the process of ‘taking a screenshot’ and producing a thumbnail from that?
FYI, I have also tried using jhead.exe to remove all metadata from the hi-res images. Some of the images change colour, and the thumbnails *still* don’t show in IE7.
Many thanks in advance, Adam.
I’m using ImageMagick 6.7.4 on 64-bit Windows Server 2003. It’s part of an image import process, which resizes hi-res JPEGs into thumbnails.
I have noticed that a subset of the original hi-res images don’t display in IE7 or IE8. They do display in other browsers, and they also display in Windows Explorer (as thumbnails) and Windows Picture and Fax Viewer (i.e. double click an image file in Windows XP). I think the problem is something to do with fancy JPEG metadata or suchlike, as these images are coming from photo studios. identify.exe tells me that some images use TIFF or PNG internally, even though the file has a .jpg extension.
My problem is that the thumbnails generated from these problematic JPEGs also don’t display in IE7 or IE8, but they do display everywhere else.
I therefore conclude that convert.exe is faithfully reproducing the metadata (or whatever) which causes IE7 to bomb out.
I’ve also noticed that some of the generated 70x70 thumbnails are greater than 500k in size - one is even greater than 1MB.
My manual solution is to do a screen capture while the image is being shown in Windows Picture and Fax Viewer and save that as a PNG. The generated thumbnail works fine in IE7.
So my question is: Can convert.exe be instructed to throw away the metadata when writing a JPEG? Or alternatively, can ImageMagick somehow automate the process of ‘taking a screenshot’ and producing a thumbnail from that?
FYI, I have also tried using jhead.exe to remove all metadata from the hi-res images. Some of the images change colour, and the thumbnails *still* don’t show in IE7.
Many thanks in advance, Adam.