"The problem actually lies with UIImage, the data parameter that feeds into UIImageWriteToSavedPhotosAlbum. UIImage actually strips off any extra EXIF information on the image, even if you try to add them with library such as iphone-exif.
To save an image with EXIF using iphone-exif, you would have to add the extra EXIF information to an NSData representation of the UIImage and write the file directly to disk. However, with the available API, you can only write to the PhotoAlbum using UIImageWriteToSavedPhotosAlbum, which only accept UIImage. Once you convert the NSData back to an UIImage, all the EXIF information is lost again! And we are back to square one."
No comments:
Post a Comment