CURIUM
What does a photo lose when saved as JPEG?

JPEG

What does a photo lose when saved as JPEG?

Information, and intentionally. Standard JPEG is lossy compression, achieving ratios of 3:1 to 100:1. The lossless variant, standardised separately as JPEG-LS, achieves ratios of only 2:1 to 8:1.

8th art · PhotographyDigital photography

The three levels

Beginner

What does a photo lose when saved as JPEG?

Information, and intentionally. Standard JPEG is lossy compression, achieving ratios of 3:1 to 100:1. The lossless variant, standardised separately as JPEG-LS, achieves ratios of only 2:1 to 8:1.

Intermediate

Why does JPEG sacrifice colour before brightness?

The human eye is quite sensitive to luminance but little to chrominance. The algorithm converts the image from RGB to the YCbCr model, then subsamples only the chrominance signals: in 4:2:0, the average of four neighbouring pixels replaces four values, whilst luminance blocks remain untouched.

Expert

At which stage does JPEG compression lose information?

At quantisation, not at the DCT transform. The latter is theoretically reversible, except for rounding errors; it is the division of each 8 × 8 matrix by a quantisation matrix that reduces high-frequency coefficients to zero. In the standard's example, a block thus shrinks from 64 to 10 values, with an average error of about 1%.