Skip to content

peekg/svg-to-png

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Turn a folder full of SVGs into PNGs!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%