
Welcome to the zlib home page, web pages originally created by Greg Roelofs and maintained by Mark Adler. If this page seems suspiciously similar to the PNG Home Page, rest assured that the similarity is completely coincidental. No, really.
zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression).
Current release:zlib 1.2.6
January 29, 2012
Version 1.2.6 has many changes over 1.2.5, including these improvements:
Version 1.2.5 fixes bugs in gzseek() and gzeof() that were present in version 1.2.4 (March 2010). All users are encouraged to upgrade immediately.
Version 1.2.4 has many changes over 1.2.3, including these improvements:
If you are using libxml version 2.7.6 or earlier, you will need to update libxml to version 2.7.7 or later before installing zlib version 1.2.4 or later. libxml 2.7.6 and earlier made unnecessary assumptions about the undocumented internal structure of zlib that were changed in zlib 1.2.4 and result in libxml crashing. This was fixed in libxml 2.7.7.
Version 1.2.3 (July 2005) eliminates potential security vulnerabilities in zlib 1.2.1 and 1.2.2, so all users of those versions should upgrade immediately. The following important fixes are provided in zlib 1.2.3 over 1.2.1 and 1.2.2:
Versions 1.1.4 (March 2002) and later eliminate an earlier potential security vulnerability, see details here. Any software that is linked against or derived from an earlier version of zlib should be upgraded immediately.
A partial list of over 500 applications using zlib is given here (uncompressed).
zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1) and in the GIF image format, the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression. A more precise, technical discussion of both points is available on another page.
zlib was written by Jean-loup Gailly (compression) and Mark Adler (decompression). Jean-loup is also the primary author/maintainer of gzip(1), the author of the comp.compression FAQ list and the former maintainer of Info-ZIP's Zip; Mark is also the author of gzip's and UnZip's main decompression routines and was the original author of Zip. Not surprisingly, the compression algorithm used in zlib is essentially the same as that in gzip and Zip, namely, the `deflate' method that originated in PKWARE's PKZIP 2.x.
Mark and Jean-loup can be reached by e-mail at
. Please read the FAQ and the manual before asking us for help. We are getting too many questions which already have an answer in the zlib documentation.
Greg, Mark and/or Jean-loup will add some more stuff here when they think of something to add. For now this page is mainly a pointer to zlib itself and to related links. Note that the deflate and zlib specifications both achieved official Internet RFC status in May 1996, and zlib itself was adopted in version 1.1 of the Java Development Kit (JDK), both as a raw class and as a component of the JAR archive format.
The lovely zlib-vise image above was provided courtesy of Bruce Gardner, art director of Dr. Dobb's Journal. It appears in Mark Nelson's article in the January 1997 issue (see below).
The current release is publicly available here:
zlib source code, version 1.2.6, tar.gz format (544K, MD5 checksum 618e944d7c7cd6521551e30b32322f4a):
zlib source code, version 1.2.6, tar.bz2 format (490K, MD5 checksum dc2cfa0d2313ca77224b4d932b2911e9):
zlib source code, version 1.2.6, zipfile format (654K, MD5 checksum 4af5b19ab6d7e829c88ef6211ecd605d):
Note that zlib is an integral part of libpng and has been tested extensively as part of many PNG-supporting applications.
zlib Frequently Asked Questions
Zlib-announce mailing list
Zlib-devel mailing list
zlib Manual
zlib Usage Example
zlib Technical Details
zlib-related specifications:
zlib's Deflate Algorithm
zlib's deflate flush modes
zlib License
zlib on github
zlib for Linux, both shared and static plus headers (RPM format, many architectures)
zlib for Solaris
zlib for Solaris (alternate)
zlib for SCO Open Server 5.0
zlib for BeOS R5
zlib for Mac OS X: zlib is already included as part of Mac OS X
zlib for Mac OS
zlib for OS/2 (DLL and static version for emx 0.9c, 46k)
zlib for Palm Pilot
zlib for Newton OS
zlib for Windows CE
zlib for RIM BlackBerry
zlib for Windows 9x/NT/2000/XP/2003 (DLL version, plus related utilities)
zlib for Windows 9x/NT (DLL and static version)
zlib for .NET in C#
zlib DLL wrapper for .NET in VB
Zip for .NET
zip file manipulation for .NET
Mark Nelson's ZlibTool article and Win32 source code for Dr. Dobb's Journal (January 1997)
zlib C++ wrapper for the gz* functions.
C++ zlib and gzip filters in an iostream framework.
zlib 32-bit OCX (C++ source and binaries for use with Visual Basic 4.x or Delphi 2.0)
zlib Pascal port (Pascal source, tested with Turbo Pascal 7.0 and Delphi 3.02)
zlib Delphi 5 interface
zlib Perl interface (source code; look for Compress-Zlib*.tar.gz)
zlib Python interface (online manual; part of the standard library as of Python 1.5)
zlib Tcl interface mkZiplib
zlib Haskell interface
zlib Java interface (see also JAR format)
zlib reimplementation in pure Java
Mark Nelson's JavaZip article (with source code) for Dr. Dobb's Journal (December 1997)
Random access for gzip archives, for Java
Gilles Vollant's zlib-based mini-zip and mini-unzip
Scott Ludwig's zlib-based CExe executable compressor for Win32
zlib technical issues, including spec errors
zlib information in Japanese
zlib information in Russian
Real World Scanning and Halftones (second edition includes a section on zlib)
Markus Oberhumer's LZO `real-time' data compression library
lz4, a very fast compression algorithm
libbzip2
PPP Deflate Protocol (RFC 1979)
Info-ZIP Home Page
Portable Network Graphics (PNG) Home Page
gzip Home Page
pigz (parallel gzip) Home Page
DataCompression.info
comp.compression Frequently Asked Questions list
after checking FAQ and manual.
(PGP key). Last updated February 5th, 2012.
You are viewing a mobilized version of this site...
View original page here