Basic cli utility to batch resize svg files
Svg-resizer requires libsrvg2 to resize SVG files.
Install it with sudo apt-get install librsvg2-bin on Linux or with brew install librsvg on OSX.
$ ./svg-resizer.js -f -x 20 -y 20 -o example/resized/ example/*.svg
-
width
-x--widthOutput SVG width.
-
height
-y--heightOutput SVG height.
-
fit
-f--fitFit to specified dimensions preserving aspect ratio.
-
format
-e--formatOutput format, but default is
svgbut can bepng,pdf,ps,svgorxml. -
output
-o--outputDestination folder.