commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Lucas (JIRA)" <>
Subject [jira] [Commented] (IMAGING-194) Tiff with JPEG,Zip compression fails to decompress
Date Mon, 30 Oct 2017 19:39:00 GMT


Gary Lucas commented on IMAGING-194:

The compression code 7 is not even listed in  TiffConstants does include
TIFF_COMPRESSION_JPEG = 6, though neither format is decoded.    I've seen Code 7 used in many
satellite images.

The documentation seems a bit sketchy on this issue, though I found some at 


> Tiff with JPEG,Zip compression fails to decompress
> --------------------------------------------------
>                 Key: IMAGING-194
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Improvement
>          Components: Format: TIFF
>    Affects Versions: 1.0
>            Reporter: Satya Deep Maheshwari
> Tiff with JPEG, Zip compression  fails to decompress with the below exception:
> {code}
> org.apache.commons.imaging.ImageReadException: Tiff: unknown/unsupported compression:
> 	at org.apache.commons.imaging.formats.tiff.datareaders.DataReader.decompress(
> 	at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(
> 	at org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> {code}
> From the [documentation|]
, it seems this compression format is not supported. Excerpt from the document below:
> {quote}
> 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.
> {quote}
> This ticket is logged to add JPEG/Zip compression format support.

This message was sent by Atlassian JIRA

View raw message