Javascript module for color quantization, based on Leptonica.