Uploading images strips out EXIF data
I have uploaded images to my server using :
xhr.send({media:myImage});
this is as per the kitchenSink examples. However when I try to extract EXIF meta-data from the saved image, I can only see orientation info - nothing else.
Basically, I'm trying to get to the geodata stored in the image.
Can anyone help with this?
Thanks, Tarek.
3 Answers
-
I take it the image was taken by the iPhone (with geodata activated)?
And also, are you trying to upload the actual image taken? Or are you trying to upload the 'saved' version, which might have had allowImageEditing to true? (ie: a square photo)I have a feeling the modified versions of photos do not contain geodata in the EXIF.
If you are uploading files to your own script on your server, you could always send the latitude and longitude as separate parameters in your XHR upload POST.
-
Interestingly enough.. the flickr app and flickit seem to do the same.. you have the ability to geotag the photo that is uploaded with your current location… but not the original photo location..
-
I believe, if the photo is taken by your up, you can request a geolocation inside the app the same moment and then send to the server both the photo and the location