-->

Is it possible to retrive an existing iPhone image

2020-07-27 05:27发布

问题:

I'm using PhoneGap 1.4.1 to create an iPhone application. I can successfully perform the following tasks:

  • retrieve an image from a photo album or the camera roll
  • take a new image with the camera
  • retrieve the current geolocation of the device

It is my understanding that images taken on the iPhone contain metadata. I believe the metadata contains the geolocation of where the picture was taken.

I can't seem to find anything in the PhoneGap API about image metadata. I can already retrieve the device's current location, but I need to access the coordinates of where a picture was taken.

Is it possible to access the stored geolocation of an iPhone photo using PhoneGap?

回答1:

It is not a PhoneGap features at the moment but you can still do it in Objective-C.

Here are some link to help you do it

UIImagePickerController and extracting EXIF data from existing photos

Adding metadata to iOS images

Google code : iPhone EXIF

Then if you can't to use it with PhoneGap, you'll probably have to create a PhoneGap Plugin