> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ImageQuantize - ComfyUI Built-in Node Documentation

> Complete documentation for the ImageQuantize node in ComfyUI. Learn its inputs, outputs, parameters and usage.

此节点设计用于将图像的颜色数量减少到指定数量，可选择应用抖动技术以维持视觉质量。此过程适用于创建基于调色板的图像或为了某些应用减少颜色复杂性。

## 输入

| 参数名称 | 数据类型           | 作用                                 |
| ---- | -------------- | ---------------------------------- |
| `图像` | `IMAGE`        | 要量化的输入图像张量。它作为颜色减少执行的主要数据。         |
| `颜色` | `INT`          | 指定要将图像减少到的颜色数量。它通过确定调色板大小直接影响量化过程。 |
| `抖动` | COMBO\[STRING] | 确定量化过程中应用的抖动技术，影响输出图像的视觉质量和外观。     |

## 输出

| 参数名称 | 数据类型    | 作用                                   |
| ---- | ------- | ------------------------------------ |
| `图像` | `IMAGE` | 输入图像的量化版本，颜色复杂性减少，并可选择性地应用抖动以维持视觉质量。 |

***
