You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luis Arias (JIRA)" <ji...@apache.org> on 2012/12/17 15:24:35 UTC

[jira] [Created] (IMAGING-100) Sanselan stumbles on attached image

Luis Arias created IMAGING-100:
----------------------------------

             Summary: 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


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