Zlib

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(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 compression library, and a general-purpose data compression format.
+
'''zlib''' format is a variant of the [[DEFLATE]] compressed data format. It adds a lightweight container, a small amount of configurability, and error checking.
  
The data format uses [[DEFLATE]] compression. It is used in many other file formats, and sometimes on its own as a file format. It is defined in [http://tools.ietf.org/html/rfc1950 RFC 1950].
+
zlib is also the name of a software library that supports the zlib format, and other formats related to DEFLATE.
  
The zlib format is not the same as [[gzip]] format, but they are fairly similar, and both are supported by the zlib library.
+
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 ==
* [http://zlib.net/ zlib data compression library]
+
* [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]
  
== Specifications ==
+
== Links ==
* [http://tools.ietf.org/html/rfc1950 RFC 1950]
+
 
+
== External links ==
+
 
* [[Wikipedia:Zlib|Wikipedia article]]
 
* [[Wikipedia:Zlib|Wikipedia article]]

Revision as of 14:24, 29 August 2019

File Format
Name zlib
Ontology
Released 1995

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

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox