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

Bruno P. Kinoshita commented on IMAGING-198:
--------------------------------------------

Managed to debug a bit more today. The reader is iterating the dirs in the 
metadata. And by default the JPEG reader asks the TIFF metadata reader to parse 
thumbnails.

When it parses the first directory, it correctly reads the thumbnails location. 
But as it's iterating through directories, the current ByteSource contains the 
bytes for that directory only and hence the exception. The current ByteSource 
bytes are around 700, but the location of the thumbnails start at the offset 
~2000 up to ~7000.

> Error while parsing JPEG with EXIF metadata with Imaging 1.0 (Sony DSC-R1)
> --------------------------------------------------------------------------
>
>                 Key: IMAGING-198
>                 URL: https://issues.apache.org/jira/browse/IMAGING-198
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG
>    Affects Versions: 1.0
>         Environment: Windows and Java 7u80
>            Reporter: Samuel
>            Assignee: Bruno P. Kinoshita
>              Labels: EXIF, JPEG
>         Attachments: 99f.jpg
>
>
> An example of a JPEG image with EXIF metadata, coming from a Sony DSC-R1 
> camera, that will not be parsed with commons-imaging 1.0.
> http://imgur.com/a/fl9D9



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to