How to optimize SVG Images

Great tool for SVG optimization, tremendous results…

https://github.com/svg/svgo

This command will optimize all the SVGs in the target folder (-r recursively) and output them at the output folder (leaving the original SVGs untouched)

Example 1 – optimize a folder

call svgo -f “D:\code\alif-central\src\images” -r

Example 2 – optimize a folder and output to new folder

call svgo -f “D:\TargetFolderContaingSVGs\”-r -o D:\outputfolder\svgs