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

ImageIO.read() fails to load an image

    XMLWordPrintable

Details

    • 2d
    • b68
    • x86
    • linux

    Description

      FULL PRODUCT VERSION :
      java version "1.6.0_24"
      Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
      Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Fedora Linux 14 - Linux 2.6.35.13-92.fc14.x86_64

      A DESCRIPTION OF THE PROBLEM :
      Unexpected exception:
      java.awt.color.CMMException: Invalid image format
      at sun.awt.color.CMM.checkStatus(CMM.java:131) ~[na:1.6.0_24]
      at sun.awt.color.ICC_Transform.<init>(ICC_Transform.java:89) ~[na:1.6.0_24]
      at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:516) ~[na:1.6.0_24]
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.acceptPixels(JPEGImageReader.java:1169) ~[na:1.6.0_24]
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method) ~[na:1.6.0_24]
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1137) ~[na:1.6.0_24]
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:948) ~[na:1.6.0_24]
      at javax.imageio.ImageIO.read(ImageIO.java:1422) ~[na:1.6.0_24]
      at javax.imageio.ImageIO.read(ImageIO.java:1326) ~[na:1.6.0_24]


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The problem is the same described here:
      http://stackoverflow.com/questions/2999528/is-there-a-100-java-alternative-to-imageio-for-reading-jpeg-files
       and here:

      http://forums.oracle.com/forums/thread.jspa?messageID=5357127&#5357127

      I have a .jpg image file that causes the error.
      (the same file can be opened in GIMP and the default GNOME image
      viewer "Eye of gnome")
      I can't find how to upload them here, please contact me.



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      java.io.InputStream source = //here I loaded my file;
      ImageIO.read(source);
      ---------- END SOURCE ----------

      Attachments

        Activity

          People

            bae Andrew Brygin
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: