exupero / saveSvgAsPng

Save SVGs as PNGs from the browser.
MIT License
1.09k stars 362 forks source link

saving SVG using <use> #9

Open DragF1 opened 9 years ago

DragF1 commented 9 years ago

Hello, I've been trying to use saveSvgAsPng(document.getElementById("printSVG"), "printSVG.png",1) with the following structure:

SVG called printSVG that contains the "use href" statement to another svg on the page called mapSVG

The image does show in the browser, but when saved, printSVG is blank. I can save the mapSVG just fine using itself. But I want to include a bunch of different svgs on the page arrange them then save the png.

MadLittleMods commented 9 years ago

:+1: I have the same problem when trying to save some MathJax output. Like for example: https://svgwg.org/svg2-draft/implnote.html#ArcParameterizationAlternatives

I even tried inlining the <defs> but it still doesn't output properly.

ArtOshchepkov commented 4 years ago

Have same problem :+1: