ComfyUI Extension
Smart Image Quantize
Perceptual image color quantization with priority hues and palette control for ComfyUI. 優先色相とパレット制御に対応したComfyUI向け知覚的画像減色ノードです。
palealloy2999-prog/comfyui_smart_image_quantize
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme
Smart Image Quantize for ComfyUI
Smart Image Quantize is a ComfyUI custom node for reducing the number of colors in an image while preserving prominent colors, selected hues, and bright neutral highlights.
It supports optional palette images and none, Floyd–Steinberg, and Bayer dithering.
Left: Original / Center: ComfyUI ImageQuantize / Right: Smart Image Quantize
Installation
Clone this repository into ComfyUI/custom_nodes, then restart ComfyUI.
cd ComfyUI\custom_nodes
git clone https://github.com/palealloy2999-prog/comfyui_smart_image_quantize.git
Usage
Add Smart Image Quantize from image/postprocessing, connect an IMAGE, and set the desired number of colors.
Main settings:
colors: Number of colors in the output palette (2–256)accent_colors: Amount of palette space reserved for vivid accent colorsaccent_hue_priority/accent_hue_2nd_priority: Hues to preserve preferentiallyneutral_highlights: Amount reserved for bright neutral colorsmin_dist: Minimum distance between selected palette colorsdither: Dithering methodpalette_image: Optional image used as a fixed or extendable palettepalette_fill_mode:strictuses only the supplied palette;extendfills missing colors from the input image
The node outputs the quantized IMAGE and a palette preview IMAGE.