html2canvas.js not capturing image. it leaves white space where the image occurs.
function capture()
{
    html2canvas(document.body, {
        allowTaint: true,
        logging:true,
        onrendered: function(canvas) {
        imagestring = canvas.toDataURL("image/png");
        console.log(imagestring);
        document.body.appendChild(canvas);
        }
    });
}
I have tried a lot but i cannot find solution .
Help is appreciated :)
It works, when I host it in the server. The security restrictions causes it to fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With