Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE6 - can't load a normal JPG

Try loading this normal .jpg file in Internet Explorer 6.0. I get an error saying the picture won't load. Try it in any other browser and it works fine. What's wrong? The .jpg file is just a normal picture sitting on the web server. I can even create a simple web page:

<a href="http://www.zodiacwheels.com/images/wheels/blackout_thumb.jpg">blah</a>

and use right click + save target as with IE6 to save it to my desktop, and it's a valid JPG file. However, it won't load in the browser!

Why?!

I even tried checking the header response and MIME type and it looks fine:

andy@debian:~$ telnet www.zodiacwheels.com 80
Trying 72.167.174.247...
Connected to zodiacwheels.com.
Escape character is '^]'.
HEAD /images/wheels/blackout_thumb.jpg HTTP/1.1
Host: www.zodiacwheels.com

HTTP/1.1 200 OK
Date: Wed, 20 Aug 2008 06:19:04 GMT
Server: Apache
Last-Modified: Wed, 20 Aug 2008 00:29:36 GMT
ETag: "1387402-914ac-48ab6570"
Accept-Ranges: bytes
Content-Length: 595116
Content-Type: image/jpeg

The site needs to be able to work with IE6, how come it won't load a simple .jpg file?

like image 309
andrewrk Avatar asked Aug 20 '08 06:08

andrewrk


2 Answers

The JPG you uploaded is in CMYK, IE and Firefox versions before 3 can't read these. Open it using Photoshop (or anything similar, I'm sure GIMP would work too) and resave it in RGB.

edit: Further Googling makes me suspect that CMYK isn't really a part of the jpeg standard, but can be shoehorned in there. That's why some software does not consider the file valid. It does however open just fine in Photoshop CS3, and shows a cmyk colorspace.

like image 166
grapefrukt Avatar answered Sep 19 '22 20:09

grapefrukt


It won't load in IE7 on my Vista x64 box. Also Paint.net won't save the file, saying "There was an unspecified error while saving the file."

EDIT:

In paint.net I did a Select All, New File, Paste, Save, and now it works fine. I'm guessing that file has some weird corruption.

like image 30
Eric Haskins Avatar answered Sep 20 '22 20:09

Eric Haskins