Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Felipe_X_
Beginner
226 Views

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

I’m creating a photo editing app.
* 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?

Tags (2)
0 Kudos
1 Reply
Reply