Converts SVGs to PNGs
Install the module with: npm install svg-to-png
var svg_to_png = require('svg-to-png');
svg_to_png.convert("input", "output") // async, returns promise
.then( function(){
// Do tons of stuff
});
.convert
Takes input, output special folder, and an options hash that include:
- pngfolder: A subdirectory (in the output) you might want the files to go into, normally ""
- defaultWidth: normally 400px
- defaultHeight: normally 300px
Check out the tests!
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
- v0.1.0 - Hey, released this thing
- v0.2.0 - API change
Copyright (c) 2013 Jeffrey Lembeck/Filament Group
Licensed under the MIT license.