Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-194

Tiff with JPEG,Zip compression fails to decompress

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-alpha1
    • None
    • Format: TIFF
    • None

    Description

      Tiff with JPEG, Zip compression fails to decompress with the below exception:

      org.apache.commons.imaging.ImageReadException: Tiff: unknown/unsupported compression: 7
      	at org.apache.commons.imaging.formats.tiff.datareaders.DataReader.decompress(DataReader.java:215)
      	at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(DataReaderStrips.java:210)
      	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:650)
      	at org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(TiffDirectory.java:157)
      	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:463)
      	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1407)
      	at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1370)
      

      From the documentation , it seems this compression format is not supported. Excerpt from the document below:

      Supported through version 6.0. TIFFs is a open-ended container format, so it's not possible to support every possibly variation. Supports Bi-Level, Palette/Indexed, RGB, CMYK, YCbCr, CIELab and LOGLUV images. Supports reading and writing LZW, CCITT Modified Huffman/Group 3/Group 4, and Packbits/RLE compression. Notably missing other forms of compression though, including JPEG. Supports reading Tiled images.

      This ticket is logged to add JPEG/Zip compression format support.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              satyadeep Satya Deep Maheshwari
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: