Convert SVG element to PNG as dataURL.
$ bower install svg2png
var svg = document.querySelector("svg");
svg2png(svg, function (err, dataURL) {
console.log(dataURL);
});
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
0.1.0
- The first version
MIT