Nodes/ComfyUI-HappNodeSet/Color Quantizer
ComfyUI Node

Color Quantizer

A ComfyUI node in image/preprocessing with 7 inputs and 2 outputs.

By mikemojen·Created 8 months ago·Updated 3 months ago· 0
Color Quantizer
  • image
  • quantized_image
  • color_palette
num_colors8
quantization_methodkmeans
ditheringnone
color_spaceLAB
sample_fraction0.5
smoothing_iterations0
Categoryimage/preprocessing

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
num_colorsCOMBO84 options: 2, 4, 8, 16
quantization_methodCOMBOkmeans4 options: kmeans, median_cut, most_frequent, kmeans_minibatch
ditheringCOMBOnone2 options: none, floyd_steinberg
color_spaceCOMBOLAB2 options: RGB, LAB
sample_fractionoptFLOAT0.50.1–1
smoothing_iterationsoptINT00–5

Outputs (2)

NameTypeDescription
quantized_imageIMAGE
color_paletteIMAGE