I would like to optimize a SVG using software on Ubuntu (and by optimize I mean to reduce the file size without loosing any visible parts of the graphic) and I do mean software I know there are some websites that can do this but I don't trust my internet connection always being good enough for this to work for me. I would also like to keep the file format SVG, I know that SVGZ is usually substantially smaller than its uncompressed counterpart but I am uploading these SVGs to a local MediaWiki installation and it cannot thumbnail SVGZ files to my knowledge (if I'm wrong please do correct me).
Ubuntu – How to reduce the size of a SVG using software on Ubuntu
optimizationsvg
Best Answer
I can't think of something better than inkscape.
You can install it usind command:
Take a look for this link for tips to optimize SVG using inkscape.
for comamnd line I think you should take a look for scour
Also take a look for this SE question , it may help.