Skip to main content
The ImageQuantize node is designed to reduce the number of colors in an image to a specified number, optionally applying dithering techniques to maintain visual quality. This process is useful for creating palette-based images or reducing the color complexity for certain applications.

Inputs

FieldDescriptionData Type
imageThe input image tensor to be quantized. It affects the node’s execution by being the primary data upon which color reduction is performed.IMAGE
colorsSpecifies the number of colors to reduce the image to. It directly influences the quantization process by determining the color palette size.INT
ditherDetermines the dithering technique to be applied during quantization, affecting the visual quality and appearance of the output image.COMBO[STRING]

Outputs

FieldDescriptionData Type
imageThe quantized version of the input image, with reduced color complexity and optionally dithered to maintain visual quality.IMAGE
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub