Compressione MZW Compressão LZW LZW-Komprimierung Compression MZW Compresión LZW

LZW compression

Abraham Lempel and Jakob Ziv are the creators of the LZ77 compressor, invented in 1977 (hence its name). This compressor was then used for filing (ZIP, ARJ and LHA formats use it).

In 1978 they created the LZ78 compressor specialized in image compression (or that of any type of binary file).

In 1984, Terry Welch of Unisys modified it, in order to use it in hard drive controllers; his surname initial was thus added to the LZ abbreviation yielding LZW.
LZW is a very fast algorithm both for compression and for decompression, based on the occurrence multiplicity of character sequences in the string to be encoded. Its principle consists in substituting patterns with an index code, by progressively building a dictionary.

Moreover, it works on bits and not on bytes, thus, it does not depend on the way in which the processor codes information. It is one of the most popular algorithms and is particularly used in TIFF and GIF formats. Since the LZW compression method has been patented by Unisys, it is the copyright-free LZ77 algorithm which is used in PNG images.

Construction of the dictionary

The dictionary is initialized with the 256 values of the ASCII table. The file to be compressed is split into strings of bytes (thus for monochrome images - coded on 1 bit - this compression is not very effective), each of these strings is compared with the dictionary and is added if not found there.

Compression

The algorithm goes over the stream of information, coding it; if a string is never smaller than the longest word in the dictionary then it is transmitted.

Decompression

During decompression, the algorithm rebuilds the dictionary in the opposite direction; it thus does not need to be stored.

Last update on Thursday October 16, 2008 02:43:16 PM.This document entitled « LZW Compression » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « LZW Compression » in :
GIF format Show GIF format The GIF format (Graphic Interchange Format) is a bitmap (raster) graphic file format developed by Compuserve. There are two versions of this file format developed respectively in 1987 and 1989: GIF 87a supporting LZW compression,...
JPEG compression Show JPEG compression The acronym JPEG (Joint Photographic Expert Group comes from the meeting held in 1982 of a group of photographic experts, whose main concern was to work on the ways to transmit information (still or animated images). In 1986, the...
Video compression (codecs) Show The concept of codec A non-compressed video image occupies approximately 1 MB. In order to obtain a fluid video, it is necessary to have a frequency of at least 25 or 30 images per second, which produces a data flow of approximately 30 MB/s, that...
Formatting Your Hard Drive ShowFormatting Your Hard Drive Formatting and installing your Hard drive using the installation CD ] A hard disk drive is a non-volatile device mainly for data storage. Usually faster than any other storage device, this essential...
How to convert a video clip in .flv format and vice versa ShowIntroduction Here's a tip for you to simply convert a video clip of (almost) any format to .flv format. This trick will be useful for dealing with the video post or publish your video on the web. How to convert to and from the .flv...
Create and Open a RAR file ShowCreate and Open a RAR file *How to create a RAR file *How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by...
Download PlexCrypt Compression-Encryption ShowDescription The application is designed by PlexObject Solutions, Inc. Awarded from some most popular places for its perfection; PlexCrypt Compression-Encryption is a tool that allows you to compress files and folders which is in a zip file. The...
RLE Compression ShowPixel packing Pixel packing is a method which allows pixels to be stored in an optimal way: for a monochrome image there are, by definition, only two colours, a point of the image can thus be coded in only one bit to gain memory space. RLE...
MP3 ShowIntroduction to the MP3 format MP3 ("MPEG Audio layer 3") is a lossy audio data compression format, developed by the International Organization for Standardization (ISO). This format is used to compress normal audio formats (WAV or CD audio) at a...
Data compression ShowWhy compress data? Nowadays, the computing power of processors increases more quickly than storage capacities, and is much faster than network band-widths, because this requires enormous changes in the telecommunication infrastructures. Thus, to...