cordova-exif icon indicating copy to clipboard operation
cordova-exif copied to clipboard

find no Exif data on phonegap ios

Open xenophon566 opened this issue 11 years ago • 3 comments

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.

xenophon566 avatar Aug 08 '14 07:08 xenophon566

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

JoaoPintoM avatar Dec 01 '14 15:12 JoaoPintoM

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

Tomino2112 avatar Feb 06 '15 22:02 Tomino2112

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.

domax avatar Oct 29 '16 01:10 domax