commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Highley (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IMAGING-143) Decompression Exception of Tiff Group 3 with T4 Options = 4
Date Thu, 30 Oct 2014 19:20:33 GMT

    [ https://issues.apache.org/jira/browse/IMAGING-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14190658#comment-14190658
] 

Josh Highley edited comment on IMAGING-143 at 10/30/14 7:20 PM:
----------------------------------------------------------------

group3test.tif attached.  All white image. TIFF Group 3 (T.4) with tag T4Options value 4


was (Author: joshhighley):
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)

Mime
View raw message