ComfyUI Extension
Img2color - Extract Colors from Image
Extract the most common colors from an image, up to any number. Convert colors to plain English names using various color naming systems.
christian-byrne/img2colors-comfyui-node
Nodes1
On cloudLocal install
Categoryimg2txt
Stars16
Updated2 years ago
Readme
Img2Color Palette Extractor ComfyUI Node

- Uses KMeans clustering to extract the dominant colors from an image
- Uses
webcolorsandcolornamerto get closest matching color names from various color naming systems get_complementarytoggler to get the complementary colors instead
Requirements
- colornamer==0.2.3
- scikit_learn>=1.4.0
- webcolors==1.13
Installation
- If you use a virtual environment to run ComfyUI, activate it
cdto theComfyUI/custom_nodesdirectorygit clonethis repositorycdto theimg2colors-comfyui-nodedirectorypip install -r requirements.txt
Color Name Categories
- From webcolors: CSS3, CSS2, CSS2.1, and HTML4 webcolors
- From colornamer: XKCD, Design, Common, Color Families, Color or Neutral, Color Type