RgbQuant.js

Graphics
Gradients
Photos
Photos 2
These photos benefit from setting 'minHueCols' > 0 to retain overwhelmed, low-frequency but distinct hues.
Multi-image
A single, optimal palette is progressivley generated for a set of images. Each is then reduced using it.

Config

            var opts = {
                colors: ,
                minHueCols: ,
                dithKern: ,
                ,
            };
		

Palette

Original

Reduced