compress svg and copy data uri to clipboard.
$ npm i -g svgu
$ svgu <filePath>
You can paste to browser to view.
Then paste to url()
or src=""
in your project.
- SVGO: SVG Optimizer is a Nodejs-based tool for optimizing SVG vector graphics files.
- mini-svg-data-uri: This tool converts SVGs into the most compact, compressible data: URI that SVG-supporting browsers tolerate.