You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Josh Highley (JIRA)" <ji...@apache.org> on 2014/10/30 20:19:34 UTC

[jira] [Updated] (IMAGING-143) Decompression Exception of Tiff Group 3 with T4 Options = 4

     [ https://issues.apache.org/jira/browse/IMAGING-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Highley updated IMAGING-143:
---------------------------------
    Attachment: group3test.tif

all white image. TIFF Group 3 (T.4) with tag T4Options value 4

> Decompression Exception of Tiff Group 3 with T4 Options = 4
> -----------------------------------------------------------
>
>                 Key: IMAGING-143
>                 URL: https://issues.apache.org/jira/browse/IMAGING-143
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: TIFF
>    Affects Versions: 1.0
>            Reporter: Josh Highley
>         Attachments: group3test.tif
>
>
> I have multiple tiff images that are causing an "ImageReadException: Decompression error".  All are Group 3 (T.4) encoded with T4Options tag value 4 (zero fill to byte).  Other Group 3 images without T4Options 4 work fine.
> Stepping through Imaging 1.0 RC7, the hasFill boolean is being set properly to true. The exception is thrown at the bottom of method HuffmanTree.java decode(bitStream).  Nothing is passed to this method indicating zero fill or not.  I will attach a test image that reproduces the issue.  The stack trace:
> Caused by: org.apache.commons.imaging.ImageReadException: Decompression error
>        at org.apache.commons.imaging.common.itu_t4.T4AndT6Compression.decompressT4_1D(T4AndT6Compression.java:254)
>        at org.apache.commons.imaging.formats.tiff.datareaders.DataReader.decompress(DataReader.java:163)
>        at org.apache.commons.imaging.formats.tiff.datareaders.DataReaderStrips.readImageData(DataReaderStrips.java:216)
>        at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:676)
>        at org.apache.commons.imaging.formats.tiff.TiffDirectory.getTiffImage(TiffDirectory.java:161)
>        at org.apache.commons.imaging.formats.tiff.TiffImageParser.getBufferedImage(TiffImageParser.java:478)
>        at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1379)
>        at org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1293)
>        at com.dstresearch.baseutils.ApacheImagingUtil.readImage(ApacheImagingUtil.java:157)
>        ... 27 more
> Caused by: org.apache.commons.imaging.common.itu_t4.HuffmanTreeException: Invalid bit pattern
>        at org.apache.commons.imaging.common.itu_t4.HuffmanTree.decode(HuffmanTree.java:89)
>        at org.apache.commons.imaging.common.itu_t4.T4AndT6Compression.decompressT4_1D(T4AndT6Compression.java:240)
>        ... 35 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)