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.
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/.
The source code has an MIT License.
See LICENSE.