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

imageUri?

Open smolleyes opened this issue 10 years ago • 1 comments

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

smolleyes avatar Jun 11 '14 02:06 smolleyes

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);

guilhermefarias avatar Jun 12 '14 01:06 guilhermefarias