Titanium-Mobile-ExifData icon indicating copy to clipboard operation
Titanium-Mobile-ExifData copied to clipboard

Cannot get GPS location info

Open batuhanc opened this issue 10 years ago • 4 comments

Hi,

I hope you are still following this.

I'm trying to get location info (latitude, longitude) from a photo from the photo gallery on iPhone 4S. I have implemented your exif.js according to readme; but when I log "Exif.pretty(Exif.fromBlob(myBlob))", I only get these;

Orientation : 6 ExifIFDPointer : 38 ColorSpace : 1 PixelXDimension : 3264 PixelYDimension : 2448

Is there something I am missing? I am sure that the photo has GPS info in it, as I can see it on my Mac with the Preview's inspector.

My test code is pretty simple;

Ti.Media.openPhotoGallery({
    success : function(event) {
        var myBlob = event.media;
        var oData = Exif.fromBlob(myBlob);
        Ti.API.info (Exif.pretty(oData));
    }
})

Thanks.

batuhanc avatar Aug 24 '14 10:08 batuhanc

Hi, Im also not seeing Location data. please advise.

mrtomnguyen avatar Jan 06 '15 01:01 mrtomnguyen

Me as well. Is anyone monitoring this? Not many resources to accomplish this and this one seems to be my only found hope. Myself, I'm needing the date and time the image was taken! Hope you can help!

walkthelot avatar Oct 06 '15 22:10 walkthelot

iOS won't report image date/time or file size for images out of the gallery. Exif seems to be the only way to get that info.

walkthelot avatar Oct 06 '15 22:10 walkthelot

Hi kenrucker, since there were no replies at the time I have created this post, we were able to resolve this with a server-side development. We have developed a web service and sent the image to the service where we extracted the location info by using a .NET library and sent the info back to the application. I'm leaving the issue open as this is not a real solution and not everyone has a server or .NET developers around.

batuhanc avatar Oct 07 '15 06:10 batuhanc