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
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
-
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.
-
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
-
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
-
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
-
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.
-
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
-
Got it
-
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?