k-means Image Color Quantization

I implemented a web page that can apply color quantization to images using k-means clustering. Here’s the link:

The JavaScript source code is available on GitHub:

Below are some examples of quantized images.

The originals are available on

Leave a Reply

Your email address will not be published. Required fields are marked *