Tinker Compression

by Samy (Kondasamy Jayaraman) · drawn with Colorfigures by April Zhu

256 shades, blocks of 1: 2514 bytes, 0% different.8 piles · 2514 B of 2304 B

Chapter 6 of 7

Throwing some away

The scanner picture barely shrank: its speckle has no repeats. But nobody needs every shade of every pixel.

This chapter: How does throwing detail away make a picture small, and what does it cost?

About this chapter

You will learn

  • Drop detail people won’t miss
  • Fewer shades and blocks make repeats
  • Smaller files, bigger difference

Words you’ll meet

Lossy
Packing that throws some detail away for good: the file comes back close, not exact.
Lossless
Packing that brings every byte back exactly.

Step 1 of 5

Every way so far was : every byte came back. packing throws some detail away first.

Predict what fewer shades do to the size.

Fewer shades per colour: what happens to the packed size?