Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked September 14th 2010 by Tarek Abou-Chanab
  • images
  • iphone
  • xhr
2 Comments
  • How did you do the authentication for flickr?

    — commented October 7th 2010 by Joshua Ceaser
  • i have had problems uploading images to my server - only on 3g - can you help me? It must be something to do with my server rejecting the 3g upload - or the way appcelerator sends the data over 3g. it works on wifi.

    — commented April 14th 2011 by James Shrager

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.

    — answered September 14th 2010 by Kosso
    permalink
    1 Comment
    • Yes taken off my camera roll, it appears that the exif info is stripped out when it's received on the server.

      I'll will have to post the lat and long separately I guess, but that means losing the photo's original exif data.

      Is there a way in Titanium to get that actual data from the photo and POST that with the image?

      — commented September 14th 2010 by Tarek Abou-Chanab
  • 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..

    — answered September 14th 2010 by Critter
    permalink
    1 Comment
    • how do I geotag the actual photo?

      — commented September 14th 2010 by Tarek Abou-Chanab
  • 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

    — answered June 22nd 2012 by Ani Sinanaj
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.