commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Arias (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IMAGING-100) Sanselan stumbles on attached image
Date Mon, 17 Dec 2012 14:24:35 GMT
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

Mime
View raw message