ComfyUI Node
Color Quantizer
A ComfyUI node in image/preprocessing with 7 inputs and 2 outputs.
Color Quantizer
- image
- quantized_image
- color_palette
◄num_colors8►
◄quantization_methodkmeans►
◄ditheringnone►
◄color_spaceLAB►
◄sample_fraction0.5►
◄smoothing_iterations0►
Categoryimage/preprocessing
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| num_colors | COMBO | 8 | 4 options: 2, 4, 8, 16 |
| quantization_method | COMBO | kmeans | 4 options: kmeans, median_cut, most_frequent, kmeans_minibatch |
| dithering | COMBO | none | 2 options: none, floyd_steinberg |
| color_space | COMBO | LAB | 2 options: RGB, LAB |
| sample_fractionopt | FLOAT | 0.50.1–1 | — |
| smoothing_iterationsopt | INT | 00–5 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| quantized_image | IMAGE | — |
| color_palette | IMAGE | — |