neocotic / convert-svg

Node.js packages for converting SVG into other formats using headless Chromium
MIT License
200 stars 47 forks source link

SVG path to PNG #50

Closed kszmigiel closed 6 years ago

kszmigiel commented 6 years ago

Hey, I'm getting some SVG path string from a user. How can I convert it to PNG using this package? How should it be formatted?

neocotic commented 6 years ago

@kszmigiel Sorry for the super late response, but take a look at the convert-svg-to-png documentation. There's plenty of examples in there but the simplest is to just call convert(str) and you'll have your PNG buffer.