Zlib
From Just Solve the File Format Problem
(Difference between revisions)
(→Software) |
(Rewrote the intro) |
||
Line 1: | Line 1: | ||
{{FormatInfo | {{FormatInfo | ||
+ | |name=zlib | ||
|formattype=electronic | |formattype=electronic | ||
|subcat=Compression | |subcat=Compression | ||
+ | |released=1995 | ||
}} | }} | ||
{{DISPLAYTITLE:zlib}} | {{DISPLAYTITLE:zlib}} | ||
− | '''zlib''' is a data | + | '''zlib''' format is a variant of the [[DEFLATE]] compressed data format. It adds a lightweight container, a small amount of configurability, and error checking. |
− | + | zlib is also the name of a software library that supports the zlib format, and other formats related to DEFLATE. | |
− | + | There are ''many'' formats and protocols that use, or may use, zlib format. A notable example is [[PNG]]. | |
== See also == | == See also == | ||
* [[Adler-32]] | * [[Adler-32]] | ||
+ | * [[DEFLATE]] | ||
== Identification == | == Identification == | ||
Line 17: | Line 20: | ||
If the first two bytes are interpreted as a [[Endianness|big-endian]] integer, it is always a multiple of 31. | If the first two bytes are interpreted as a [[Endianness|big-endian]] integer, it is always a multiple of 31. | ||
+ | |||
+ | == Specifications == | ||
+ | * RFC 1950: ZLIB Compressed Data Format Specification version 3.3 | ||
== Software == | == Software == | ||
− | * [ | + | * [https://zlib.net/ zlib data compression library] |
** [https://github.com/cloudflare/zlib CloudFlare fork of zlib] | ** [https://github.com/cloudflare/zlib CloudFlare fork of zlib] | ||
* [https://github.com/richgel999/miniz miniz] | * [https://github.com/richgel999/miniz miniz] | ||
Line 25: | Line 31: | ||
* [http://aluigi.altervista.org/mytoolz.htm#offzip Offzip] | * [http://aluigi.altervista.org/mytoolz.htm#offzip Offzip] | ||
− | == | + | == Links == |
− | + | ||
− | + | ||
− | + | ||
* [[Wikipedia:Zlib|Wikipedia article]] | * [[Wikipedia:Zlib|Wikipedia article]] |
Revision as of 14:24, 29 August 2019
zlib format is a variant of the DEFLATE compressed data format. It adds a lightweight container, a small amount of configurability, and error checking.
zlib is also the name of a software library that supports the zlib format, and other formats related to DEFLATE.
There are many formats and protocols that use, or may use, zlib format. A notable example is PNG.
Contents |
See also
Identification
The first byte of a zlib datastream has eight possible values: 0x08, 0x18, 0x28, ..., 0x78.
If the first two bytes are interpreted as a big-endian integer, it is always a multiple of 31.
Specifications
- RFC 1950: ZLIB Compressed Data Format Specification version 3.3
Software
- zlib data compression library
- miniz
- zopfli - zlib compressor highly optimized for file size
- Offzip