PackBits
PackBits is a simple, lossless run-length encoding scheme used for compressing 8-bit data streams, notably in image formats such as TIFF and various Apple-era formats. It encodes data as a sequence of a single control byte followed by either literal data or a replicated byte, depending on the control value.
The encoding rules are defined by a signed interpretation of the control byte. If the control byte
PackBits is designed for simplicity and speed rather than maximum compression. It performs well on data with
Historically, PackBits has been associated with Apple and Macintosh software and became one of the standard