Reputation: 1060
I am trying to have my application determine if a photo in photoalbum is from camera. The general flow I am trying to implement is
Since the "Camera roll" can be written with photos from other application, I want to detect those photos that were specifically taken using the camera.
Thanks in advance
Upvotes: 2
Views: 446
Reputation: 36389
See Technical Q&A 1622, Listing 2 for details on how to get the metadata dictionary of dictionaries (one dictionary for each metadata format) for each ALAssetRepresentation
and grab the EXIF dictionary.
The keys of the dictionary of dictionaries can be found in the CGImageProperties Reference, along with the key names for the EXIF dictionary. From that you should be able to get the Camera Make/Model to figure out if it was taken with the phone.
Upvotes: 5