SVGZ file とは何ですか?
Compressed Scalable Vector Graphics
- Developed By
- World Wide Web Consortium (W3C)
- Initial Release
- 2001
- MIME Type
- image/svg+xml
SVGZ format は、標準の Scalable Vector Graphics (SVG) file を厳密に GZIP-compressed した version です。これは Deflate compression algorithm (RFC 1951) を利用して、標準の SVG に通常含まれる冗長な XML text data の file size を削減し、多くの場合 50-80% の size 削減を達成します。graphical rendering capabilities や DOM structure の面では SVG と機能的に同一ですが、binary compression により、事前に decompression を行わない限り標準の text editors では file を読み取ることができません。
SVGZ file の開き方
ほとんどの現代的な web browsers (Chrome, Firefox, Safari) は、web server が正しい Content-Encoding: gzip header を付けて提供する場合、SVGZ files を native に render します。オフラインでの編集では、Adobe Illustrator や Inkscape などの vector graphics tools が自動的に decompression を行い、graphic を表示します。手動での検査が必要な場合は、file の拡張子を .gz に変更し、7-Zip や GNU Gzip などの utilities を使用して decompress できます。