svgo Command Examples

SVG Optimizer: optimizing Scalable Vector Graphics files. Based in Node.js. It applies a series of transformation rules (plugins), which can be toggled individually. More information: https://github.com/svg/svgo.

svgo {{test.svg}}

svgo {{test.svg}} {{[-o|--output]}} {{test.min.svg}}

svgo {{[-f|--folder]}} {{path/to/directory/with/svg/files}}

svgo {{[-f|--folder]}} {{path/to/input/directory}} {{[-o|--output]}} {{path/to/output/directory}}

{{cat test.svg}} | svgo {{[-i|--input]}} - {{[-o|--output]}} {{test.min.svg}}

svgo {{test.svg}} {{[-o|--output]}} -

svgo --show-plugins