Image Compression


Using K-Means algorithm to reduce the number of colors in an image by clustering them [code]

Original Image (583 KB)

Compression by Reduction to 64 Colors (439 KB)

Compression by Reduction to 32 Colors (326 KB)

Compression by Reduction to 16 Colors (229 KB)

Compression by Reduction to 8 Colors (136 KB)

Compression by Reduction to 4 Colors (81.1 KB)

Compression by Reduction to 2 Colors (42.1 KB)