A from-scratch implementation of the JPEG compression pipeline: RGB to YCbCr conversion, chroma subsampling, 8x8 block splitting, 2D DCT, quantization, zig-zag ordering, run-length and Huffman coding, decoding, and PSNR-based quality comparison. The notebook builds the compression mechanics directly rather than treating JPEG as a black-box image format.