Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237636

Clarify the document about support of JPEG CMYK having ICC profile

    XMLWordPrintable

    Details

      Description

      Exception below raised when reading the JPEG image, which is based on CMYK and having ICC profile. Need to make sure if the JDK supports JPEG CMYK image having ICC profile.

      java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
              at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:482)
              at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1263)
              at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
              at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1231)
              at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1034)
              at javax.imageio.ImageIO.read(ImageIO.java:1448)
              at javax.imageio.ImageIO.read(ImageIO.java:1308)

      According to the document, JPEG data having ICC profile may be recognized as RGB, but not clear.
      https://docs.oracle.com/javase/8/docs/api/javax/imageio/metadata/doc-files/jpeg_metadata.html

        Attachments

          Activity

            People

            Assignee:
            aivanov Alexey Ivanov
            Reporter:
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: