How do I access EXIF information in a camera picture taken using the new API 4.0 / 4.1?
I use _captureStillImageAsynchronouslyFromConnection_ to take a snapshot and:
[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer]
to get jpg data, but how to extract EXIF?
Doco makes links to imageDataSampleBuffer containing EXIF (I can see it there if I examine the variable in the console):
"Buffer attachments may contain metadata appropriate to the image data format. For example, a buffer containing JPEG data may contain kCGImagePropertyExifDictionary as an attachment."
But I cannot figure out how to manipulate CMSampleBufferRef to get it.
Thanks.
source share