JDK-8023565 : JPG causes javax.imageio.IIOException: ICC APP2 encoutered without prior JFIF!
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Priority: P3
  • Affected Version: 8-pool
  • OS: generic
  • CPU: generic
  • Submit Date: 2013-08-22
  • Updated Date: 2014-02-12
  • Resolved Date: 2013-09-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u71Fixed 7u60Fixed 8 b110Fixed
Related Reports
Relates :  
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

Sample image which throws exception
2013-08-22