TLDR Dev · ARTICLES & TUTORIALS

JPEG COMPRESSION

sophielwang.com9 min read

Summary from the TLDR Dev newsletter

JPEG compression reduces image file sizes by exploiting human visual perception and the structure of natural images. The process compresses images by converting them to the Y'CbCr color space and applying chrominance subsampling to reduce data based on human visual perception. It then uses a Discrete Cosine Transform (DCT) and quantization to discard high-frequency details, finally compacting the results through Huffman encoding.