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] [Commented] (IMAGING-100) Sanselan stumbles on attached image
Date Sun, 23 Dec 2012 08:50:14 GMT

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

Damjan Jovanovic commented on IMAGING-100:
------------------------------------------

According to http://dev.robotbattle.com/bugs/view.php?id=533
there are 2 cases when multiple App13 segments appear: one is (a) where a single IPTC block
is split into multiple segments, and the other is (b) when there are multiple independent
IPTC blocks.

This image is case (b). To write a patch for this, I also need a case (a) image so I can see
exactly how to distinguish these cases.

                
> Sanselan stumbles on attached image
> -----------------------------------
>
>                 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
>            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message