JDK-8274735 : javax.imageio.IIOException: Unsupported Image Type while processing a valid JPEG image
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 8,11,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-10-04
  • Updated: 2022-05-21
  • Resolved: 2022-03-25
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 Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15 JDK 17 JDK 19
11.0.16-oracleFixed 15.0.8Fixed 17.0.4-oracleFixed 19 b16Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
 ImageIO.read on JPEG image with CMYK throws
         javax.imageio.IIOException: Unsupported Image Type
          Here is the stack:
          javax.imageio.IIOException: Unsupported Image Type at
           com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1079) at
          com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1050)
          at javax.imageio.ImageIO.read(ImageIO.java:1448)
          at javax.imageio.ImageIO.read(ImageIO.java:1352)
Comments
Fix Request (11u) - Parity with 11.0.16-oracle - Risk Analysis: Low - Testing: The fix verified by the test, the jdk_desktop tests are green - PR: https://github.com/openjdk/jdk11u-dev/pull/1048
29-04-2022

Fix Request (15u) - Risk Analysis: Low - Testing: The fix verified by the test, the jdk_desktop tests are green - PR: https://github.com/openjdk/jdk15u-dev/pull/201
26-04-2022

Fix Request (17u) - Parity with 17.0.4-oracle - Risk Analysis: Low - Testing: The fix verified by the test, the jdk_desktop tests are green - PR: https://github.com/openjdk/jdk17u-dev/pull/365
26-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1048 Date: 2022-04-26 01:53:10 +0000
26-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk15u-dev/pull/201 Date: 2022-04-26 01:47:08 +0000
26-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/365 Date: 2022-04-26 00:59:20 +0000
26-04-2022

Working on the backport to the openjdk 11/15/17.
25-04-2022

Changeset: f8a16491 Author: Phil Race <prr@openjdk.org> Date: 2022-03-25 15:07:44 +0000 URL: https://git.openjdk.java.net/jdk/commit/f8a164915fff5e9e8f3c9c1996b51e7e4fe5d68d
25-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7849 Date: 2022-03-17 03:23:49 +0000
17-03-2022

https://bugs.openjdk.java.net/browse/JDK-5100094 can be used for full support of CMYK JPEGs. This bug can be used for basic reading of CMYK JPEGs so we don't get an exception.
17-03-2022