cordova-exif
cordova-exif copied to clipboard
imageUri?
hi
what s the imageUri in your exemple ???
i hava a blob then i do
var imageURI = window.webkitURL.createObjectURL(blob); alert(imageURI) CordovaExif.readData(imageURI, function(exifObject) { alert(exifObject) });
alert(imageURI) ok but alert(exifObject) not working...
an idear?
thanks
The imageUri must be the data returned by success callback function executed by navigator.camera.getPicture function.
var options = { quality: 90, sourceType: 2, destinationType: 1, }; function onSuccess(imageURI) { CordovaExif.readData(imageURI, function(exifObject) { console.log(exifObject); }); }; function onFail(message) {}; navigator.camera.getPicture(onSuccess, onFail, options);