samedi 16 juillet 2016

How I save img in local library photos using cordova with Intel xdk?

I'm creating a photo editing app for children. * User take the picture * The photo go to the screen which will add hat, hair, eyebrows and other objects. * DIV edited with imagens and picture convert to imagem

$(document).ready(function() {
    var conteudo = sessionStorage.getItem('pictureEdited'); 
    var getImage;
    var image;

   $('div[class="picture_final"]').html(content);
    html2canvas(document.getElementById('picture'), {
        onrendered: function(canvas) {
            console.log(canvas.toDataURL("image/png", 1.0));
            image = new Image();            
            image.src = canvas.toDataURL("image/png", 1.0); 
        }
    });

}

var image.src have (in resume) this "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA....JCX0ncoDi60EQEE2l8grP97xP8tav/a+fDEeT9PlYb6utC60rHnavL/pgwCeFFjfskAAAAASUVORK5CYII="

how i save image generated in photo library in android/ios?

Aucun commentaire:

Enregistrer un commentaire