0

Is it possible to get an image of DIV element which contains SVG elements with background images inside. Here is an example of SVG with background image and script which unfortunately doesn't save image of SVG elements.

    html2canvas($("#widget"), {
        onrendered: function(canvas) {
            theCanvas = canvas;
            document.body.appendChild(canvas);

            // Convert and download as image 
            Canvas2Image.saveAsPNG(canvas); 
            $("#img-out").append(canvas);
            // Clean up 
            //document.body.removeChild(canvas);
        }
    });
wyy
  • 515
  • 2
  • 4
  • 18
  • Two external resources from nihilogic.dk results in 404. Also keep in mind HTTPS when referrencing external resources. – myf May 03 '16 at 15:51
  • Possible duplicate of [Convert SVG to PNG with applied images as background to svg elements](http://stackoverflow.com/questions/34042910/convert-svg-to-png-with-applied-images-as-background-to-svg-elements) – Kaiido May 03 '16 at 23:43
  • Also, if IE – Kaiido May 03 '16 at 23:45

0 Answers0