Saturday, 14 December 2019

dom-to-image package is not capturing border-image

I'm using the dom-to-image package to capture some elements with border-image, and everything is getting captured, excepts the border image. Please find below my code:

domtoimage.toPng(document.getElementById("item_preview")).then(function (dataUrl) {
        var img = new Image();
        img.src = dataUrl;
        document.body.appendChild(img);
    }).catch(function (error) {
        console.error('oops, something went wrong!', error);
    });


from dom-to-image package is not capturing border-image

No comments:

Post a Comment