Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVGZ file format [closed]

Tags:

svg

svgz

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.

like image 472
Zain Avatar asked Jan 19 '11 08:01

Zain


People also ask

What is SVGZ file format?

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.

What is the difference between SVG and SVGZ?

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.

Do browsers support SVGZ?

All browsers support SVGZ when served with the proper HTTP headers.


1 Answers

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.

like image 53
J-16 SDiZ Avatar answered Sep 24 '22 03:09

J-16 SDiZ