A child sends the same blue-sky photograph between two phones across a living-room table.

How does a phone shrink a huge photo?

A photo can hold millions of colored squares. Yet your phone can send it in seconds. How does all that picture fit through so fast?

First clue: a picture is a grid of tiny colored squares called pixels. Saving it means remembering one box, then the next, all the way across.

A phone picture opens into a magnified pixel grid and an ordered row of colored squares.

Four neighboring pixels happen to match. Could the phone replace them with one short instruction and still remember all four?

tap the repeated row

Nothing vanished. The tag keeps the color and how many, so the phone can stamp the exact row back later. This squeeze loses no detail.

A teal color-and-count tag passes through a stamper and rebuilds the matching row of blue pixels.

Move the slider. Watch the pixel row above and the stored tags below change together. What kind of pattern makes the count move?

this row: messy
24 tags
messy · all differentcalm · long runs

Try both ends. Which kind of row needs fewer tags?

Same grid. One tiny interruption.

Both pictures use the same 16 × 10 grid. One is all blue. The other changes one 3 × 3 patch into a yellow sun.

An all-blue 10-row sky would fold to 10 tags.

How many stored tags will the whole sky-with-sun picture need?