01 | Run-length encoding
Pair counts are not physical file sizes.02 | Huffman coding
The payload excludes the tree, headers and padding. Displayed bit strings are not packed bytes.03 | Quantization
Original gradient
Reduced gradient
This is a toy per-pixel quantizer, not JPEG.