1.0.3 • Published 8 years ago

svg2png-command v1.0.3

Weekly downloads
3
License
WTFPL
Repository
github
Last release
8 years ago

DEPRECATED - svg2png command line wrapper

svg2png (which this package wraps) now includes its own CLI, so you should probably just use it directly instead

npm Travis David David

This module is a (very thin) command line wrapper around domenic's svg2png. Use it to convert SVGs to PNGs from your command line like: $ svg2png --scale 2.0 --out /png/dir -- svg1.svg svg2.svg

install

$ npm install -g svg2png-command

use

$ svg2png [options] -- files_or_glob

Default output directory is the directory the SVGs live in and the default output filename is the same filename with .svg replaced with .png

options

flagparameterdescription
-o, --outpathOutput directory
-s, --scalefloatScales the PNG
-h, --helpN/AOutputs the help text

note

A command line tool called svg2png already exists in the world, and you may have it installed if you've found yourself frequently trying to convert SVGs to PNGs. You may need to uninstall it to get everything to work. I wouldn't worry too much though; domenic's PhantomJS-based converter tends to be better than any other tool.

test

$ npm test

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago