Skip to content

JesusSayes/saveSvgAsPng

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

saveSvgAsPng

To save a PNG, include the script saveSvgAsPng.js in your page, then call the saveSvgAsPng function with an SVG node, a filename, and an optional scaling factor:

saveSvgAsPng(document.getElementById("diagram"), "diagram.png", 3);

About

Save SVGs as PNGs from the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published