Storing a photo in iOS Camera Roll
Hi,
as we know taking a photo with CameraUI does not store the image directly into Camera Roll.
I encounter rotation problems when storing such a photo with
cameraRoll.addBitmapData(bitmapData);
if the device was not in landscape mode when the image was taken.
I just tried the various solutions found when googling, where all of them fail on my iPad3 and iOS 6:
- The main EXIF library site (http://code.shichiseki.jp/as3/ExifInfo/) cannot be reached anymore, but wouldn't work either without modifications
- The GitHub project from Christian Cantrell (https://github.com/cantrell/ExifExample) throws an Exception when used 1:1 as explained
- Another GitHub project for Flex (https://github.com/mharrisn/FlexSDKiOSPhotoCapture) runs through but gives me orientation values like 39629 instead of the expected one-digit values
All of these solutions are quite outdated, therefore i'm wondering if there is a solution that works with most recent iOS devices and OS versions ?
Alternatively i could write an ANE that would receive the taken photo as BitmapData or ByteArray (hopefully with the EXIF info included) and therefore store the image correctly oriented
in Camera Roll.
If someone knows a solution that works fine please let me know. Thank you.
