CmdID

CmdID / Commands

svgo

SVG Optimizer: optimizing Scalable Vector Graphics files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

SVG Optimizer: optimizing Scalable Vector Graphics files. Based in Node.js. It applies a series of transformation rules (plugins), which can be toggled individually.

Optimize a file using the default plugins (overwrites the original file)

svgo test.svgIdentify

Optimize a file and save the result to another file

svgo test.svg --output test.min.svgIdentify

Optimize all SVG files within a directory (overwrites the original files)

svgo --folder path/to/directory_with_svg_filesIdentify

Optimize all SVG files within a directory and save the resulting files to another directory

svgo --folder path/to/input_directory --output path/to/output_directoryIdentify

Optimize SVG content passed from another command, and save the result to a file

cat test.svg | svgo --input - --output test.min.svgIdentify

Optimize a file and print out the result

svgo test.svg --output -Identify

Show available plugins

svgo --show-pluginsIdentify