[
https://issues.apache.org/jira/browse/IMAGING-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arjohn Kampman updated IMAGING-174:
-----------------------------------
Attachment: friends.jpg
Jpeg file with two PHUT IRB signatures
> Support non-8BIM signatures in Photoshop segments
> -------------------------------------------------
>
> Key: IMAGING-174
> URL: https://issues.apache.org/jira/browse/IMAGING-174
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: JPEG
> Reporter: Arjohn Kampman
> Attachments: friends.jpg
>
>
> The code in IptcParser.parseAllBlocks(...) requires that all blocks have an
> "8BIM" signature. However, we're frequently finding jpeg files that have
> "PHUT" signatures mixed in. Some sites also report "AgHg" and "DCSR"
> signatures, for example: http://dev.exiv2.org/issues/800. Although the
> signature is not what the code expects, the block's data layout is still the
> same as for 8BIM. Please consider either parsing such blocks, or at least
> skip them with a warning. Currently, the code throws an exception which
> prevents us from extracting any of the other metadata. I'm attaching a sample
> image from the Enron Corpus that has two of these PHUT resource blocks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)