Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.17 KB

svg-to-png Build Status

Filament Group

Converts SVGs to PNGs

Getting Started

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
});

Documentation

.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

Examples

Check out the tests!

Contributing

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.

Release History

  • v0.1.0 - Hey, released this thing
  • v0.2.0 - API change

License

Copyright (c) 2013 Jeffrey Lembeck/Filament Group
Licensed under the MIT license.