The zlib plugin provides an interface for the zlib library.
For more information about zlib see http://www.zlib.net/
Codecs
- gzip — deflate data with a gzip header RFC 1952).
- zlib — deflate data with a zlib header (RFC 1950).
- deflate — raw deflate data (RFC 1951).
Options
- window-bits (integer, 8-15, default 15): The base two logarithm of the maximum window size. The value passed to the decompressor must be greater than or equal to the value passed to the compressor.
Encoder Only
- level (integer, 1-9, default 6): Compression level. 1 will result in the fastest compression while 9 will result in the highest compression ratio.
- mem-level (integer, 1-9, default 8):
- strategy (enumeration, default "default"): Descriptions adapted from the deflateInit2 zlib documentation:
- default — Use this for normal data.
- filtered — For data produced by a filter (or predictor). The effect of filtered is to force more Huffman coding and less string matching; it is somewhat intermediate between default and huffman.
- huffman — Force Huffman encoding only (no string match)
- rle — Limit match distances to one (run-length encoding)
- fixed — Prevent the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.
License
The zlib plugin is licensed under the MIT License, and zlib is licensed under the zlib License, a permissive OSI-approved license.