Nodes Browser
ComfyDeploy: How Img2color - Extract Colors from Image works in ComfyUI?
What is 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.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
Img2color - Extract Colors from Image
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
Img2Color Palette Extractor ComfyUI Node
- Uses KMeans clustering to extract the dominant colors from an image
- Uses
webcolors
andcolornamer
to get closest matching color names from various color naming systems get_complementary
toggler to get the complementary colors instead
Requirements
- colornamer==0.2.3
- scikit_learn>=1.4.0
- webcolors==1.13
Installation
cd
to theComfyUI/custom_nodes
directorygit clone
this repositorycd
to theimg2colors-comfyui-node
directorypip 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