commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damjan Jovanovic (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IMAGING-100) Need to support images with multiple App13 segments
Date Mon, 21 Oct 2013 18:51:42 GMT

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

Damjan Jovanovic updated IMAGING-100:
-------------------------------------

    Summary: Need to support images with multiple App13 segments  (was: Sanselan stumbles
on attached image)

> 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: 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.1#6144)

Mime
View raw message