Titanium Community Questions & Answer Archive

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

Exif data from photo gallery

Developers,

Any way to get exif data from images that is stored in the photo gallery? (Location of the image for example).

Thanks!

regards,
clayton

— asked June 10th 2010 by Clayton Narcis
  • exif
  • image
  • images
  • iphone
  • mobile
0 Comments

9 Answers

  • Accepted Answer

    It's not a titanium framework limitation, it's just not implemented

    If you're familar with objective-C you can code your own titanium module as you can see here

    http://www.iphonedevsdk.com/forum/iphone-sdk-development/11033-getting-gps-data-image-exif.html

    , or open a ticket here:

    https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/milestones/current

    — answered June 10th 2010 by Guillaume LAFOUTRY
    permalink
    0 Comments
  • Ok, it has been 2 years huh, still I can't find any straight answers on image EXIF and coming up with proper orientation for pictures taken via camera. It would be a great help if you can share the solution that you have found.

    — answered June 19th 2012 by Mathan Muniandy
    permalink
    0 Comments
  • I hacked around with the Titanium.Media module to return location and EXIF data when a photo is selected in the photo gallery. I am planning on putting this on GitHub for all to enjoy. I'll update this thread when it is available.

    Dave

    — answered July 30th 2012 by David Knell
    permalink
    0 Comments
  • Here is the link to the myMedia module on GitHub. It provides location and EXIF data on photos returned from openPhotoGallery(). Let me know how it works out for you!

    Dave

    — answered July 30th 2012 by David Knell
    permalink
    0 Comments
  • I've created a version of Jacon Seidelin's Exif.js to work with Titanium. It's pure Javascript. You can grab a copy over @

    https://github.com/gstreetmedia/TitaniumMobileExifData

    — answered November 20th 2013 by Andrew Greenstreet
    permalink
    2 Comments
    • This works great on my Galaxy S3, however, on my HTC EVO I get the following error when reading from the camera:
      "Uncaught Error: position 17825804 and length 1213481727 is bigger than the expected length: 65536"

      It looks like it is trying to read past the buffer perhaps? Any thoughts?

      — commented December 22nd 2013 by Jeff Rohr
    • Additional info: [633,24 ui/Exif.js

      var value = Ti.Codec.decodeString({

      — commented December 22nd 2013 by Jeff Rohr
  • As far as I know, you can't get this within an app (unless you capture location when/if your app takes the photo).

    But you can get EXIF data from various server based libraries (using php for example) once a photo has been uploaded to a server.

    EXIF data can give you GPS data, Camera make and model, camera settings (f-stop/exposure etc.), orientation. It all depends on the camera which took the photo.

    — answered June 10th 2010 by Kosso
    permalink
    0 Comments
  • Yeah, i'm aware of doing it over the backend which i'm trying to avoid the round trip.

    Any insight to whether is this Titanium or IPhone framework limitations?

    Thanks! :D

    — answered June 10th 2010 by Clayton Narcis
    permalink
    0 Comments
  • Got it

    — answered June 10th 2010 by Clayton Narcis
    permalink
    0 Comments
  • If you move the image from the HTC over to the S3 do you still get the same issue? That is to say, I'm wondering if this is a device issue or an image issue. Can you send me a sample image to test with?

    — answered December 27th 2013 by Andrew Greenstreet
    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.