ComfyUI > Nodes > ComfyUI_LayerStyle_Advance > LayerUtility: GetColorTone V2(Advance)

ComfyUI Node: LayerUtility: GetColorTone V2(Advance)

Class Name

LayerUtility: GetColorToneV2

Category
😺dzNodes/LayerUtility
Author
chflame163 (Account age: 701days)
Extension
ComfyUI_LayerStyle_Advance
Latest Updated
2025-03-09
Github Stars
0.18K

How to Install ComfyUI_LayerStyle_Advance

Install this extension via the ComfyUI Manager by searching for ComfyUI_LayerStyle_Advance
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_LayerStyle_Advance in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LayerUtility: GetColorTone V2(Advance) Description

Sophisticated tool for analyzing and extracting color tones from images, with advanced AI artist capabilities.

LayerUtility: GetColorTone V2(Advance):

The LayerUtility: GetColorToneV2 node is a sophisticated tool designed to analyze and extract color tones from images, offering advanced capabilities for AI artists to enhance their creative projects. This node allows you to determine the dominant or average color tones within an image, providing flexibility in focusing on specific areas such as the entire image, the background, or the subject itself. It also includes options for background removal using various methods, which can be particularly useful for isolating subjects or enhancing specific elements within an image. By leveraging this node, you can gain insights into the color dynamics of your images, enabling more informed artistic decisions and refined visual outputs.

LayerUtility: GetColorTone V2(Advance) Input Parameters:

image

The image parameter is the primary input for the node, representing the image from which color tones will be extracted. It is essential for the node's operation as it serves as the basis for all subsequent color analysis.

mode

The mode parameter determines the method of color extraction, offering options such as main_color for identifying the dominant color and average for calculating the average color tone. This choice impacts the type of color information you receive, allowing for tailored analysis based on your artistic needs.

color_of

The color_of parameter specifies the area of the image to focus on for color extraction, with options including mask, entire, background, and subject. This parameter allows you to target specific parts of the image, enhancing the precision of the color analysis.

remove_bkgd_method

The remove_bkgd_method parameter provides options for background removal, such as none, BiRefNet, and RMBG 1.4. This feature is useful for isolating subjects or focusing on specific image elements by removing or altering the background.

invert_mask

The invert_mask parameter is a boolean option that, when enabled, inverts the mask used in the analysis. This can be useful for reversing the focus area, such as switching from subject to background, and offers additional flexibility in color extraction.

mask_grow

The mask_grow parameter is an integer that allows for the expansion or contraction of the mask, with a default value of 0 and a range from -999 to 999. This parameter provides control over the mask's size, enabling fine-tuning of the area considered for color analysis.

mask

The mask parameter is an optional input that allows you to provide a custom mask for the image. This can be used to define specific areas for color extraction, offering greater control over the analysis process.

LayerUtility: GetColorTone V2(Advance) Output Parameters:

image

The image output returns the processed image, which may include modifications based on the selected parameters, such as background removal or mask application. This output allows you to visualize the changes made during the color extraction process.

color_in_hex

The color_in_hex output provides the extracted color tone in hexadecimal format, offering a precise and easily interpretable representation of the color information derived from the image.

HSV color in list

The HSV color in list output delivers the extracted color tone in HSV (Hue, Saturation, Value) format, presented as a list. This format is useful for understanding the color's properties in terms of its hue, saturation, and brightness.

mask

The mask output returns the mask used during the color extraction process, allowing you to review or reuse the mask for further image processing or analysis.

LayerUtility: GetColorTone V2(Advance) Usage Tips:

  • Experiment with different mode settings to see how the dominant and average color tones differ in your images, providing insights into the overall color balance.
  • Utilize the remove_bkgd_method to isolate subjects or backgrounds, enhancing the focus on specific elements within your image for more targeted color analysis.
  • Adjust the mask_grow parameter to fine-tune the area of interest, especially when working with complex images where precise color extraction is crucial.

LayerUtility: GetColorTone V2(Advance) Common Errors and Solutions:

Image input is empty

  • Explanation: This error occurs when the image parameter is not provided or is empty.
  • Solution: Ensure that a valid image is supplied to the node as input.

Invalid mode selection

  • Explanation: This error arises when an unsupported value is chosen for the mode parameter.
  • Solution: Verify that the mode parameter is set to either main_color or average.

Mask size out of range

  • Explanation: This error happens when the mask_grow parameter is set outside the allowable range.
  • Solution: Adjust the mask_grow value to be within the range of -999 to 999.

LayerUtility: GetColorTone V2(Advance) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_LayerStyle_Advance
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.