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

Unsupported color conversion request for jpg file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 6-pool
    • 6u10
    • client-libs
    • None
    • 2d
    • generic
    • linux

      The Java2D jpeg decoder fails to decode the attached jpg file. See the Java Exception below.

      This .jpg file can be properly displayed on a Mac and with a Firefox3 on Windows.
      It fails to decode on Windows and Linux x86 Java SE 6 and even the latest Java SE 7 binaries.

      To reproduce the failure run this command:

      java com.thinkfree.awt.JpegDecoderTest snapdragon.jpg

      Using toolkit ----
      sun.awt.image.ImageFormatException: Unsupported color conversion request
      at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
      at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
      at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
      at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
      at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
      error while decoding /home/behumble/Desktop/snapdragon.jpg
      null
      Using ImageIO ----
      javax.imageio.IIOException: Unsupported Image Type
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:940)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:915)
      at javax.imageio.ImageIO.read(ImageIO.java:1422)
      at javax.imageio.ImageIO.read(ImageIO.java:1282)
      at com.thinkfree.awt.JpegDecoderTest.decodeWithImageIoJpeg(JpegDecoderTest.java:38)
      at com.thinkfree.awt.JpegDecoderTest.main(JpegDecoderTest.java:50)
      null
      ]0;behumble@accentnux: ~/workspace/ThinkTestSuite/binbehumble@accentnux:~/workspace/ThinkTestSuite/bin$

            bae Andrew Brygin
            bobv Bob Vandette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: