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

[TIFF] IIOException "Error inflating data" when loading deflate-compressed image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • core-libs

      To reproduce please use the attached image and the code from JDK-8154075.

      Result (JDK9 b112, Win. 7):

      Exception in thread "main" javax.imageio.IIOException: Error inflating data
              at com.sun.imageio.plugins.tiff.TIFFDeflateDecompressor.decodeRaw(java.desktop@9-ea/TIFFDeflateDecompressor.java:95)
              at com.sun.imageio.plugins.tiff.TIFFDecompressor.decode(java.desktop@9-ea/TIFFDecompressor.java:2484)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.decodeTile(java.desktop@9-ea/TIFFImageReader.java:1080)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.read(java.desktop@9-ea/TIFFImageReader.java:1283)
              at javax.imageio.ImageReader.readAll(java.desktop@9-ea/ImageReader.java:1065)
              at LoadImage.load(LoadImage.java:40)
              at LoadImage.main(LoadImage.java:63)
      Caused by: java.util.zip.DataFormatException: incorrect header check
              at java.util.zip.Inflater.inflateBytes(java.base@9-ea/Native Method)
              at java.util.zip.Inflater.inflate(java.base@9-ea/Inflater.java:259)
              at com.sun.imageio.plugins.tiff.TIFFDeflateDecompressor.decodeRaw(java.desktop@9-ea/TIFFDeflateDecompressor.java:93)
              ... 6 more

      Can open the image with:
      - Windows Photo Viewer (Win. 7)
      - GNOME image viewer 3.10 (Ubuntu 14.04)
      - Preview 8.0 (OS X 10.10)

            sherman Xueming Shen
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: