
video
Reducible: How Compression Works
by Reducible
Computer science algorithms visualized with beautiful, clear animations.
Why it’s worth your time
Reducible's "How PNG Works: Compromising Speed for Quality" (2022) explains how PNG compresses images without losing a single pixel, building up from the ideas inside ZIP files: Huffman coding, run-length encoding and LZSS, which replaces repeated sequences with references to earlier ones. Then comes PNG's own trick, filtering — predicting each byte from its neighbors with one of five filters, including the clever Paeth filter, so that smooth gradients turn into repetitive data the compressor can squeeze.
The trade-off in the title is the twist at the end: all that machinery makes PNG slow, and the video compares it with QOI, Dominic Szablewski's one-page format from 2021, which comes close on compression while encoding 20 to 50 times faster. The animations make an intricate pipeline easy to follow; a few details of the real format are simplified, and it ends with a sponsor segment.
Where to start
- How PNG Works: Compromising Speed for Quality
The video itself.
- Huffman Codes: An Information Theory Perspective
The deeper treatment of one building block.
- The Unreasonable Effectiveness of JPEG: A Signal Processing Approach
The lossy counterpart.
- The Information
James Gleick's history of information theory, the idea underneath all compression.
About Reducible
Reducible is a YouTube channel of animated explanations of computer science, from data compression to image formats.
Everything by ReducibleAbout this channel
This channel is all about animating computer science concepts in a fun, interactive, and intuitive manner.


