I thought that this would be interesting to look at.

How JPEG Image Compression Works | TechSpot