I've been trying to figure how whether the iPhone (either 3G or 3Gs) camera puts metadata into it's images. Anecdotally, it appears that it does (e.g., I've seen images posted on the web that included a bunch of metadata), but I can't find reference to it anywhere in the SDK documentation. So....does anyone have a definitive answer? Also, if there is metadata, how do I get at it?
views:
204answers:
2
+1
A:
IIRC, the API hides that data out of privacy concerns. The data is in the images but you can't get to it using the Apple API.
TechZen
2010-04-11 21:11:00
How would I get at that data then (for example, if I wanted to parse it myself)? I think UIImage.CGImage only gives you content data, not the entire thing.
Ben Collins
2010-04-11 21:26:45
+2
A:
There is metadata. Check out the iphone-exif project, which provides you a means to get/set the EXIF tags. As they note, UIImage will strip out the metadata. iphone-exif works around this. It requires you to use the UIImageJPEGRepresentation() function to feed the NSData into a specialized scanner class, which they provide.
Zack
2010-04-11 23:02:03