Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

How JPEG Shrinks a Photo 10×

Throwing away what your eyes cannot see.

A raw 12-megapixel photo is about 36 MB (12 million pixels × 3 bytes). JPEG compresses it to 3–4 MB by discarding high-frequency detail your eye barely notices.

Raw size

Each pixel stores red, green and blue: 3 bytes. So raw size = pixels × 3.

Raw=W×H×3\text{Raw} = W \times H \times 3

12 MP photo (4000 × 3000)

  1. 1

    Raw

    12,000,000 × 3 = 36 MB

  2. 2

    JPEG quality 80

    ≈ 3.6 MB

Answer

10:1 compression ratio

The formula behind it

Multiplication

a×ba \times b
See the full formula, variables and more examples

The takeaway

JPEG throws away what you cannot see, keeping 90% less data with almost no visible loss.

Back to all stories