Minify Your SVGs
11–20 of 66 posts
Re: Minify Your SVGs
#12Re: Minify Your SVGs
#13It is written in Rust and has been my go to for SVG optimization due to its speed.
Re: Minify Your SVGs
#14Re: Minify Your SVGs
#15Related: https://jakearchibald.github.io/svgomg/
My only problem is that when pasting SVG directly from Illustrator it finds an invalid character at the end and refuses to use it. I have to paste the SVG into an editor, remove some invisible character at the end, and then paste to svgomg.
I reported this and offered to PR but never got an answer: https://github.com/jakearchibald/svgomg/issues/145
Re: Minify Your SVGs
#16Illustrator has an export SVG function (as opposed to just saving as an SVG, which I was doing and then using a minifer for a long time) that will minify it for you. That said, it currently appears unable to reopen those minified SVGs (go figure).
Re: Minify Your SVGs
#17Re: Minify Your SVGs
#18Pro tip for people with SVGs that have an image inside. You can pull that base64 image out of the svg, convert to image, compress it (tinypng, pngcrush etc) then convert back to base64 and out back in the SVG. We automated this with a slackbot but it’s often overlooked with all SVG optimization scripts.
Re: Minify Your SVGs
#19This is an excellent post! It does a fantastic job of defining the problem and walking the reader through the process of solving it. The language is so succinct and clear that even if the reader had never heard of SVGs before, they would understand this post. Well done, Victor!
Re: Minify Your SVGs
#20SVGO is an incredible project driven by a single volunteer in spare time (originally Kir Belevich https://twitter.com/deepsweet , and for the last few years Lev Solntsev https://twitter.com/ruGreLI). It's the type of project you probably use regularly behind another tool like Sketch or SVGOMG (https://jakearchibald.github.io/svgomg/). They accept donations (https://www.paypal.me/deepsweet) and you should definitely consider contributing if you find it useful.