k-means-quantization-js icon indicating copy to clipboard operation
k-means-quantization-js copied to clipboard

Apply color quantization to images using k-means clustering.

k-means Image Color Quantization

k-means Image Color Quantization is a web page that can apply color quantization to images using k-means clustering.

The code runs fully in the browser. That is, there are no server-side calls to process the image and/or run the clustering and quantization. The implementation is in JavaScript.

How To Use

To quantize an image, navigate to index.html, load an image, select a value for k, and click Quantize. The time to process increases with the size of the image.

The page is available at https://dstein64.github.io/k-means-quantization-js/.

Screenshots

Selection/Instructions

Select

Quantized Image

Quantized

License

The source code has an MIT License.

See LICENSE.