Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageUri? #1

Open
smolleyes opened this issue Jun 11, 2014 · 1 comment
Open

imageUri? #1

smolleyes opened this issue Jun 11, 2014 · 1 comment

Comments

@smolleyes
Copy link

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

@guilhermefarias
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants