Skip to content
Renders SVG to images using Node.js and Phantom.js
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

rendersvg for Node.js

Renders SVGs using PhantomJS.

var rendersvg = require('rendersvg');

instream.pipe(rendersvg.renderStream([ext = 'png'])).pipe(outstream)
// or
rendersvg.convert(inbuffer, [ext = 'png'], function (err, outbuf) {
    // ...
})

Possible extensions:

  • png
  • gif
  • jpg
  • pdf

Requirements

OS X: brew install phantomjs

License

MIT.

Something went wrong with that request. Please try again.