Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size without providing better visible quality.
SVG Cleaner could help you to clean up your SVG files from unnecessary data. It has a lot of options for cleanup and optimization, works in batch mode, provides threaded processing on the multicore processors and basically does two things:
- removing elements and attributes that don't contribute to the final rendering;
- making those elements and attributes in use more compact.
Images cleaned by SVG Cleaner are typically 40-60 percent smaller than the original ones.
Important! The internal image viewer in SVG Cleaner uses the QtSvg module for rendering SVG images. Qt supports only the static features of SVG 1.2 Tiny, and that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all.
sudo add-apt-repository ppa:svg-cleaner-team/svgcleaner sudo apt-get update sudo apt-get install svgcleaner