Search code examples
svgsvgz

Compress SVG or Convert SVG to SVGz


Is there a way to compress SVG files?

I've been told that SVGz is the best way although I haven't found a converter to convert my SVG file.

Or is there an app where I can import an SVG file and export to SVGz?


Solution

  • It uses GZip:

    http://en.wikipedia.org/wiki/Scalable_Vector_Graphics#Compression

    If you host SVG files on a web server, and have a properly configured web server, your web server will already compress files sent to the client, so compression of the SVG to SVGz is unnecessary (in fact undesirable).

    To test whether your web server is configured correctly, refer to: How can I tell if my server is serving GZipped content?