commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashok Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IMAGING-100) Need to support images with multiple App13 segments
Date Mon, 09 Nov 2015 13:13:10 GMT

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

Ashok Kumar updated IMAGING-100:
--------------------------------
    Attachment: PixarInConcert_150903_art.jpg
                MultipleApp13Segments.patch

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)

Mime
View raw message