Skip to content

Quantize

Node icon
Color

Reduces the image to N total colors using k-means clustering for whole-image palette reduction.

Quantize reduces the entire image to a specified number of unique colors. It uses k-means to find the best representative colors, then remaps every pixel to its nearest match. This creates a flat, stylized look similar to indexed-color images.

Unlike Posterize (which operates per-channel), Quantize considers the full RGB color together, producing a more harmonious and intentional palette.

Color

ColorsInteger
Default: 16 Range: 2–256

Total unique colors via k-means; lower=more stylized

AttemptsInteger
Default: 3 Range: 1–10

K-means restarts; higher=better selection, slower

DitherToggle
Default: false

Bayer 4x4 dithering for smoother gradients with fewer colors

  • Enable dithering to reduce visible banding and color transitions.
  • Use 8–16 colors for a retro/pixel art style.
  • Use the Dither node with a connected Palette for quantization to a specific set of colors.