8daa7809fe4228fc4bc65396c6d31da19fa969b1
Added installation instructions, features, and usage details for ComfyUI-Color-Palette.
ComfyUI-Color-Palette
A custom node for ComfyUI that extracts the main color palette from an uploaded image and calculates the percentage of each color.
Installation
-
Navigate to your ComfyUI
custom_nodesdirectory:cd ComfyUI/custom_nodes/ -
Clone this repository (or create a new folder
ComfyUI-Color-Paletteand copy the files into it):git clone <your-github-repo-url> ComfyUI-Color-Palette cd ComfyUI-Color-Palette -
Install the required dependencies:
pip install -r requirements.txt -
Restart ComfyUI.
Features
- Extracts the top N dominant colors from an image using K-Means clustering.
- Generates a visual color palette image.
- Outputs detailed hex codes and percentage distributions as text.
Usage
Find the node in the ComfyUI menu under: image -> analysis -> 🎨 Image Color Palette Analyzer. Connect an image input, set the number of colors you want to extract, and view the output image and text data.
Languages
Python
100%