3 ms·
Often, you can considerably reduce the file size of an SVG text file without a noticeable reduction in perceptual quality just by reducing the precision of the
by McKayDavis 4y ago
Often, you can considerably reduce the file size of an SVG text file without a noticeable reduction in perceptual quality just by reducing the precision of the coordinates.
The awesome SVG Optimizer [1] has a filter (cleanupNumericValues) to process SVG files to a fixed precision.
The equally awesome SVG Optimizer Missing Gui (SVGOMG) [2] provides a web-based GUI [3] to interactively adjust precision and see the resulting render (and file-size).
[1] https://github.com/svg/svgo https://github.com/svg/svgo
[2] https://github.com/jakearchibald/svgomg https://github.com/jakearchibald/svgomg
[3] https://jakearchibald.github.io/svgomg https://jakearchibald.github.io/svgomg