Apex › Data & encoding

How JPEG compresses an image

The lossy compression behind almost every photo. A narrated walk through the discrete cosine transform (pixels → frequency coefficients), quantization (dividing and rounding so high-frequency detail becomes zero — the actual lossy step and most of the shrink), and decode. Real 8×8 DCT: slide the quality and watch coefficients vanish and the rebuilt block turn blocky.

More in Data & encoding