guilhermefarias / cordova-exif

:camera: This plugin, is the simplest way to get exif data of images at Cordova platform (Phonegap)
Other
42 stars 33 forks source link

find no Exif data on phonegap ios #4

Open xenophon566 opened 10 years ago

xenophon566 commented 10 years ago

Hello, I have a question about the plugin. I followed you complete example, trying to get a Exif data on phonegap ios. but the result is "undefinded". here is my code :
navigator.camera.getPicture(function(FILE_URI){ CordovaExif.readData(FILE_URI, function(exifObject) { console.log(exifObject); // output is undefinded }); }, function(err){ console.error(err) });

My FILE_URI ==> file:///var/mobile/Applications/F43B3D33-F23E-424A-87E9-9F42BA2AB57B/tmp/photo_001.jpg

please help me to find out the problem, thank you so much.

JoaoPintoM commented 9 years ago

Same problem here.. no idea for a solution ? Still undefined

Tomino2112 commented 9 years ago

From what I have researched, it seems to be issue with cordova camera plugin. It doesn't copy exif data when selecting already existing picture from gallery, only when taking new picture

domax commented 7 years ago

Despite this plugin works as designed (gets EXIF data from photo data), it is useless in iOS, because iOS keeps metadata (especially geolocation) separately from photo - it should be obtained with native code. So, if you need geolocation data, I would recommend to use cordova-plugin-photos instead.