[
https://issues.apache.org/jira/browse/IMAGING-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14996504#comment-14996504
]
Ashok Kumar edited comment on IMAGING-100 at 11/9/15 1:13 PM:
--------------------------------------------------------------
[~damjan]
Attached is an image with multiple app13 segments, and there is a temporary
patch file to throw exceptions only if parsing is done in strict mode. As
throwing ImageReadException makes other successfully parsed metadata of a jpeg
useless.
was (Author: ashokpanghal):
Attached is an image with multiple app13 segments, and there is a temporary
patch file to throw exceptions only if parsing is done in strict mode. As
throwing ImageReadException makes other successfully parsed metadata of a jpeg
useless.
> Need to support images with multiple App13 segments
> ---------------------------------------------------
>
> Key: IMAGING-100
> URL: https://issues.apache.org/jira/browse/IMAGING-100
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: JPEG
> Affects Versions: 0.97
> Reporter: Luis Arias
> Assignee: Damjan Jovanovic
> Priority: Minor
> Attachments: MultipleApp13Segments.patch,
> PixarInConcert_150903_art.jpg, employee.jpg
>
>
> The attached image gives rise to the following exception when using sanselan
> to retrieve exif orientation information as follows:
> IImageMetadata metadata = Sanselan.getMetadata(bytes);
> JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata;
> TiffField orientation =
> jpegMetadata.findEXIFValue(TiffConstants.EXIF_TAG_ORIENTATION);
> orientation.getIntValue();
> | org.apache.sanselan.ImageReadException: Jpeg contains more than one
> Photoshop App13 segment.
> at
> org.apache.sanselan.formats.jpeg.JpegImageParser.getPhotoshopMetadata(JpegImageParser.java:609)
> at
> org.apache.sanselan.formats.jpeg.JpegImageParser.getMetadata(JpegImageParser.java:309)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:978)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:871)
> at org.apache.sanselan.Sanselan.getMetadata(Sanselan.java:846)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)