views:

613

answers:

3

I have a jpeg that shows up properly in FF, but won't appear in IE or Chrome. I tried downloading the image and loading it in IE and Chrome directly without success: both browsers shows a broken icon. So this is not a network issue.

This file is a result of an image resize by javax.imageio.ImageIO. I have processed over 1000 images successfully.

Windows explorer shows the thumbnail properly, and I can edit it successfully in Microsoft Office Picture Manager.

Is there any tool that could help me understand what is wrong with this file?

A: 

If all you want to do is fix this one image and move on, I imagine you could fix it by simply writing it out with a different tool, perhaps after making a trivial change.

DigitalRoss
I tried to do a save-as in Microsoft Office Picture Manager, and the new images would not load.
Thierry-Dimitri Roy
+2  A: 

My guess is it's a CMYK JPG. Change it to RGB.

twlichty
You were right. The file was ok, but it's CMYK JPG that is not handled well by java. See:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799903
Thierry-Dimitri Roy
...and even if Java had handled it correctly, IE can't display them.
Olly Hodgson
A: 

You need a library/class that supports CMYK, otherwise all you get is an error or, even worse, all you get is an unreadable pictures. Look your documentation for references to "Colorspace".

UVL