title: UIImagePickerController and extracting EXIF data from existing photos
body: <p>It's well known that UIImagePickerController doesn't return the metadata of the photo after selection. However, a couple of apps in the app store (Mobile Fotos, PixelPipe) seem to be able to read the original files and the EXIF data stored within them, enabling the app to extract the geodata from the selected photo.</p>
  
  <p>They seem to do this by reading the original file from the <em>/private/var/mobile/Media/DCIM/100APPLE/</em> folder and running it through an EXIF library.</p>
  
  <p>However, I can't work out a way of matching a photo returned from the UIImagePickerController to a file on disk. I've explored file sizes, but the original file is a JPEG, whilst the returned image is a raw UIImage, making it impossible to know the file size of the image that was selected.</p>
  
  <p>I'm considering making a table of hashes and matching against the first x pixels of each image. This seems a bit over the top though, and probably quite slow.</p>
  
  <p>Any suggestions?</p>