Visit ComfyUI Online for ready-to-use ComfyUI environment
Extract dominant or average image color in HEX and HSV formats for AI artists' color analysis and design tasks.
The LayerUtility: GetColorTone node is designed to analyze an image and extract its dominant color or average color, providing valuable insights into the color characteristics of the image. This node is particularly useful for AI artists who need to understand the color palette of an image for tasks such as color grading, style transfer, or creating cohesive visual designs. By converting the image to RGB and applying a Gaussian blur, the node ensures that the extracted color tones are representative of the overall image. The node can return the main color or the average color in both HEX and HSV formats, making it versatile for various applications.
This parameter expects an image input in the form of a tensor. The image is processed to extract the color tone, and it should be in a format that can be converted to an RGB image. The quality and resolution of the input image can impact the accuracy of the color tone extraction.
This parameter determines the method used to extract the color tone from the image. It accepts two options: main_color
and average
. The main_color
option extracts the dominant color in the image, while the average
option calculates the average color of the entire image. Choosing the appropriate mode depends on whether you need the most prominent color or a general color representation of the image.
This output provides the extracted color tone in HEX format. The HEX color code is a string representation of the RGB color, which is widely used in web design and digital art. This output is useful for quickly identifying and using the color in various design tools and applications.
This output provides the extracted color tone in HSV (Hue, Saturation, Value) format as a list. The HSV color model is often used in image processing and computer graphics because it aligns more closely with human perception of colors. This output allows for more intuitive adjustments and manipulations of the color properties.
main_color
mode to get the most prominent color tone.average
mode.main_color
or average
. Verify that the value is correctly spelled and matches one of the supported options.© Copyright 2024 RunComfy. All Rights Reserved.