DEFLATE

From Just Solve the File Format Problem
Revision as of 15:07, 14 August 2021 by Jsummers (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
File Format
Name DEFLATE
Ontology
PRONOM x-cmp/16
Wikidata ID Q2712
Released ~1991

Deflate (stylized as DEFLATE, Deflate, or deflate) is a widely used lossless compression algorithm based on LZ77 with Huffman coding.

It was originally developed for use in PKZIP 2.x. For many software implementations that support creation or extraction of ZIP archive files, Deflate is the only compression algorithm supported.

There is a popular extension of Deflate known as zlib format, and the term "Deflate" often turns out to mean zlib. Formats that use Deflate without zlib include ZIP and gzip.

The term Inflate is sometimes used in conjunction with decompressing this format.

Contents

Format details

DEFLATE is a segmented format, with each segment using one of three compression schemes:

  • 0: Non-compressed.
  • 1: LZ77+Huffman, with predefined Huffman codebooks. Likely intended as a low-overhead scheme for small files.
  • 2: LZ77+Huffman, static Huffman, with codebooks stored at the beginning of the segment.

Only non-compressed segments have a size limit.

See also

Software

See also zlib#Software, and ZIP#Software.

References

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox