SVGZ file format [closed]
开发者_StackOverflow
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI'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
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.
I know this is an old thread, but as SVG is just plain-text you are able to send it from your server in a compressed format.
Enable Gzip Compression on Apache
Look into gzip/deflate compression for your particular http server, the support for compression in browsers is very good at the moment.
Also SVGZ files cannot be opened locally by Firefox 19.0.2 or IE 9.0.8112, however, Google Chrome can. This doesn't necessarily effect people viewing it through your browser since it ought to work if you set the right mime-type, but if they download it they will not be able to open it regularily (until they un-gzip it of course).
精彩评论