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

Gary Lucas commented on IMAGING-360:
------------------------------------

The ImageInfo for TIFF is missing information related to three TIFF compression 
options, two of which are quite commonly used. I propose to modify the 
TiffImageParser class to populate these values.
{code:java}
TIFF_COMPRESSION_DEFLATE_PKZIP 
TIFF_COMPRESSION_DEFLATE_ADOBE {code}
Additionally, the TIFF format has an obsolete variation on JPEG that was 
abandoned in the 1990's.  Commons Imaging does not currently support TIFF JPEG 
compression, though many of the pieces needed are already in its code base.  I 
propose to do the following:

The current code has a class called TiffConstants that includes the definition 
for

 
{code:java}
    TIFF_COMPRESSION_JPEG = 6;{code}
Code 6 is the obsolete JPEG variation.  Code 7 is the format currently used in 
many TIFF utilities. So I propose to modify the constants and as follows

 
{code:java}
TIFF_COMPRESSION_JPEG_OBSOLETE = 6
TIFF_COMPRESSION_JPEG = 7
{code}
 

I will update ImageInfo's inner enum "CompressionAlgorithm" to have a support 
entry for JPEG_TIFF_OBSOLETE (it already has one for JPEG). So anyone who gets 
ImageInfo on a legacy TIFF file will at least get meaningful information about 
its format.

 

> Missing some TIFF compression information in ImageInfo
> ------------------------------------------------------
>
>                 Key: IMAGING-360
>                 URL: https://issues.apache.org/jira/browse/IMAGING-360
>             Project: Commons Imaging
>          Issue Type: Bug
>            Reporter: Gary Lucas
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to