United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8023565 : JPG causes javax.imageio.IIOException: ICC APP2 encoutered without prior JFIF!

Details
Type:
Bug
Submit Date:
2013-08-22
Status:
Closed
Updated Date:
2013-11-26
Project Name:
JDK
Resolved Date:
2013-09-04
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8-pool
Fixed Versions:

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
Trying to read a certain JPEG image which is stored with CMYK color profile throws an IIOException when trying to get the image metadata of the (first and only) image in the file.

Apparently the 'old' com.sun.image.codec.jpeg.JPEGImageDecoder is able to read that sample image. But to me this is no solution because it is not portable enough.

                                    

Comments
Added JPEGMetadataTest.java file
Verified on jdk7u45b03 ??? test failed with javax.imageio.IIOException: ICC APP2 encountered without prior JFIF!
Verified on jdk8b112 ??? test successful

Environment:
Local VirtualBox VM with Ubuntu 12.04 x32
Linux virt 3.8.0-32-generic #47~precise1-Ubuntu SMP Wed Oct 2 16:22:28 UTC 2013 i686 i686 i386 GNU/Linux
                                     
2013-10-31
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/ba041df8a554
User:  lana
Date:  2013-10-01 17:37:37 +0000

                                     
2013-10-01
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/ba041df8a554
User:  mcherkas
Date:  2013-09-04 14:16:25 +0000

                                     
2013-09-04
Sample image which throws exception
                                     
2013-08-22



Hardware and Software, Engineered to Work Together