Using K-Means algorithm to reduce the number of colors in an image by clustering them
Original image (583 KB):
Compression by reduction to 2 colors (42.1 KB):
Compression by reduction to 4 colors (81.1 KB):
Compression by reduction to 8 colors (136 KB):
Compression by reduction to 16 colors (229 KB):
Compression by reduction to 32 colors (326 KB):
Compression by reduction to 64 colors (439 KB):