node package manager

@behance/svg-converter

Behance SVG Converter

Batch-convert SVG icons to PNG for multiple pixel densities.

Usage

Given that you have a file with the path:

/path/to/svgs/cool-icons/icon.svg

The command be-svg-converter --input=path/to/svgs/ --output=path/to/pngs/

Will produce new files with the paths:

  • path/to/pngs/1x/cool-icons/icon.png
  • path/to/pngs/2x/cool-icons/icon.png
  • path/to/pngs/3x/cool-icons/icon.png

License

Apache-2.0