views:

2224

answers:

11

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"&gt;blah&lt;/a&gt;

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?

A: 

It is possible for other applications to register themselves as a handler for files with a particular extension. Quicktime has (or at least had) a tendency to do this with .png files, so a .png file would display fine inline in an HTML page, but with an URL referring directly to the .png file, IE would immediately delegate all responsibility for handling the file to Quicktime.

Might this be what is happening to your .jpg files? Is it only this .jpg file that you're having a problem with?

Greg Hewgill
A: 

The problem is that you're on a Debian machine.

Is it this specific file that won't load? Perhaps you could open it in an editor, and then save it again?

Ryan Fox
A: 

Clarification:

I only used linux to do the telnet - I'm not running IE through wine or anything. Try it yourself if you can get ahold of IE6. The behavior will be duplicated.

Ryan, I indicated that the file was valid by downloading it to the desktop with the malperforming software and opening it and seeing that it worked. It's a completely clean IE 6.0 installation, with no addons, plugins, nothing.

superjoe30
+1  A: 

Maybe it is related to this: http://photo.net/bboard/q-and-a-fetch-msg?msg_id=003j8d

John Sheehan
+2  A: 

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.

Eric Haskins
A: 

@superjoe30:

The part that was crossed out was a joke.

Microsoft isn't known as the most standards-friendly company. It's entirely possible that IE6 doesn't support some obscure feature of the JPEG standard that your image editor tried to use.

Ryan Fox
+1  A: 

The file is probably not a fully valid JPG and IE6/7/8 (I tested on IE8 and it wont load). Other browsers are a bit more defensive and can load it, but perhaps IE team choose not to load it as it could be invalid in a way that causes a security hole.

As Ryan Fox says, open it in an editor and re-save it ... where did the image come from, if it came from an editor dont use that editor again.

Edit: I opened it an Paint Shop Pro and it had an unknown color palette so had to convert it ... perhaps that is the problem. You could report it as a bug to the IE team and see what they say.

Dan
+20  A: 

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.

grapefrukt
I just ran into this today. Wow. I never would have guessed!
Josh
Is there any confirmation of this from Microsoft?
Liam
+1  A: 

You can use jpeginfo to find out if a jpeg file is OK or not.

$jpeginfo -c blackout_thumb.jpg

blackout_thumb.jpg 240 x 240 32bit Exif N 595116 Unsupported color conversion request [ERROR]

In your case the file is corrupted which explain why some browsers cannot display it.

Pat
A: 

Hi to ALL Iam also facing a Similar problem .For example if a Yahoo Page i can C a two Pictures of JPEG perfectly but in same page another JPEG file is in Blurred condition and also same condition in ORKUT iam not able to visulise some of the jpeg. Is there anyone to sort out this issue.Please.

A: 

Change your internet browser sure fix the stupid problem.