gstreetmedia / Titanium-Mobile-ExifData

A straight up Javascript Class for reading EXIF data from either a filepath or a Blob
44 stars 9 forks source link

Cannot get GPS location info #3

Open batuhanc opened 10 years ago

batuhanc commented 10 years ago

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.

mrtomnguyen commented 9 years ago

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

walkthelot commented 9 years ago

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 commented 9 years ago

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.

batuhanc commented 9 years ago

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.