You could install the optimizer Inkscape uses internally and process your files with a super simple shell script. When reading the inkscape command line help, it does not seem to offer any option to export optimized SVGs from there. Source: 11 months ago
Inkscape uses Scour under the hood for optimized SVG export. Source: about 1 year ago
First make sure all your icons are saved as 'Optimized SVG' to remove Inkscape specific data and unnecessary id-attributes. Inkscape uses 'Scour' for this under the hood, so you can just use that directly to convert your files from the command line. I recommend the options --strip-xml-prolog --remove-metadata --enable-id-stripping --renderer-workaround. Now you only need to replace the outermost ... With ... For... Source: almost 2 years ago
The script optimised the SVG using Scour. This removes some metadata and also shortens IDs as well as strip out comments. For the PNG files we used OptiPNG on the maximum optimisation setting. This can be slow on larger files, but for favicons should not take long. Here’s the before and after comparison of files sizes for a particular favicon, using the script:. - Source: dev.to / almost 2 years ago
I also recommend Inkscape, it also has scour built-in to it. When saving a SVG select the option "optimized SVG" which will give you options to pass to scour to lower the amount of markup there is. You can then do some hand editing after this to further remove any markup you don't want. Source: over 2 years ago
Interested to see comparisons against scour (https://github.com/scour-project/scour). Source: almost 3 years ago
Do you know an article comparing Scour to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Scour. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.