svgo-ll is a Node.js library and command-line application for optimizing SVG images.
npm install svgo-llsvgo-ll is a Node.js library and command-line application for optimizing SVG files, evolved from the SVGO package. svgo-ll is focused on lossless optimization and compression. See the summary of differences between svgo-ll and SVGO for more details.
To experiment with svgo-ll and its options without installing it, you can use the webopt website to optimize files in your browser.
SVG files, especially those exported from vector editors, usually contain a lot of redundant information. This includes editor metadata, comments, hidden elements, default or suboptimal values, and other stuff that can be safely removed or converted without impacting rendering.
You can install svgo-ll globally through npm. Alternatively, drop the global flag (-g) to use it in your Node.js project.
``sh`npm
npm install -g svgo-ll
To process a single file with the default settings for svgo-ll version 5:
`sh``
svgo-ll -i one.svg -o one.min.svg
For more detailed options, see the command line option documentation or FAQ.
This software is released under the terms of the MIT license.