Hi,
I am trying to read the Orientation tag in EXIF image data grabbed with CameraRoll or CameraRollUI using AIR 3.6 on iOS 6.1
To achieve this, I use this library coded by Christian Cantrell :
Unfortunantly, it raises an error when I try to parse the Byterray containing the EXIF data :
var exifInfo:ExifInfo = new ExifInfo( eb );
TypeError: Error #1034: Type Coercion failed: cannot convert "<tags level="0th IFD TIFF Tags">
<tag tag_name="Image width" field_name="ImageWidth" id="0x0100" compressed="J">
<uncompressed chunky="M" planar="M" ycc="M" />
... INSERT BIG CHUNK OF XML HERE ...
</tags>" to XML.
at jp.shichiseki.exif::ExifInfo/readIFDs()[/Users/***/Google Drive/AS3/libs/jp/shichiseki/exif/ExifInfo.as:100]
at jp.shichiseki.exif::ExifInfo()[/Users/***/Google Drive/AS3/libs/jp/shichiseki/exif/ExifInfo.as:63]
It seems that Air can't cast the data into XML, but it's kind of crazy because I am able to see all the data in the error text (I purposedly truncated it here for not flooding this post) and it's XML valid. I had a look into the ExifInfo class, but it's hard to see where the error comes from.
I really need to get access to these data, since it's the only way to determine image orientation in iOS. Or is there any native extention thaht I could use to achieve this ?
Any advice will be welcome as I am stuck on a project for a client because of this.
Thank you all !