I'm working in SVG and just read about the compressed file 'SVGZ' format. As it makes our file sizes a lot smaller, I'm quite keen on using it in our web application, however the browsers do not appear to support the format. Can anyone point to any documentation on how to use SVGZ files instead of SVG in online documents/ apps.
svgz extension is a compressed version of Scalable Vector Graphics (. SVG) file. It is compressed with gzip compression and contains data in XML format. SVGZ files support transparency, gradients, animations, and filters.
It may seem strange that both . svg (plaintext SVG) and . svgz (compressed SVG) files are served with the same MIME type. The difference is in the Content-Encoding header, which combined with the Content-Type describes the type of content being served.
All browsers support SVGZ when served with the proper HTTP headers.
SVGZ
is just a gzipped SVG
, see this.
Note: Not all browser support SVGZ
. Your HTTP server may probably compresses its response with deflate, which have the same performance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With