JPEG is a lossy image compression standard since 1992. Compression works by applying discrete cosine transforms(DCT) by dividing picture into blocks of 8x8 pixels.
Exey Panteleev | CC BY 2.0