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

Bruno P. Kinoshita updated IMAGING-258:
---------------------------------------
    Fix Version/s: 1.0-alpha2

> TiffReader.readDirectories() fails on EXIF data
> -----------------------------------------------
>
>                 Key: IMAGING-258
>                 URL: https://issues.apache.org/jira/browse/IMAGING-258
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: TIFF
>    Affects Versions: 1.0-alpha1
>            Reporter: Gary Lucas
>            Priority: Minor
>             Fix For: 1.0-alpha2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When reading a TIFF directory that contains an EXIF sub directory, the 
> TiffReader class throws an ImageReadException stating that "ExifOffset has 
> incorrect type IFD". 
> This exception occurs in the TiffReader.readDirectories() call which attempts 
> to read all IFD's (directories) in a TIFF file.  It can be avoided by calling 
> TiffReader.readFirstDirectory().  Of course, if you do that, you will not be 
> able to access the EXIF elements.
> This happens when accessing the TIFF element with TIFF Tag 0x8769.  I suspect 
> that it could also happen with TIFF files containing GPS extensions, Tag 
> 0x8825.
> I've gotten this issue with GeoTIFF files from a couple of different sources. 
>  The one I'd recommend for testing would be the public-domain "Natural Earth 
> Data"  medium-size Cross-blended Hypsometric Tints file at 
> [https://www.naturalearthdata.com/downloads/10m-raster-data/10m-cross-blend-hypso/]
> I am not experienced with the EXIF sub-directory specification and do not yet 
> have a good sense of what the level of effort for a fix would be.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to