I need to read a jpg image (not from the imagelibrary) and write into them the exif geotag data taken from the iPhone gps
how can I do this?
thanks in advance.
Paolo
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The UIImagePickerController doesn’t give you the Camera’s location. You have to add CLLocationManager in the app. Initiate/delegate to self. And call “startUpdatingLocation”. Then in “-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation”, you are able to get your location from “newLocation”.
Now if you want to save the image to photo Library, you can use https://github.com/gpambrozio/GusUtils
More explanations can be found: http://blog.codecropper.com/2011/05/adding-metadata-to-ios-images-the-easy-way/