LayerStyle

2167
By chflame
Updated 15 days ago
View on GitHub →See Common Issues →

A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.

Available Nodes

LayerColor: ColorBalance

LayerColor: ColorBalance Node Documentation

Overview

The LayerColor: ColorBalance node is a component of the ComfyUI framework specifically designed for adjusting the color balance of images. This node allows users to fine-tune the colors in an image by manipulating the amounts of cyan-red, magenta-green, and yellow-blue tones, thereby achieving desired color corrections or artistic effects.

Functionality

The node performs color balance adjustments by applying specific modifications to each color channel of an input image. This process can enhance the visual quality of the image, correct color imbalances, or help achieve specific stylistic goals.

Inputs

The LayerColor: ColorBalance node accepts the following inputs:

  • Image: The primary input, it represents the image(s) to be processed. The node accepts image data in a compatible format that the ComfyUI workflow supports.

  • Cyan-Red: A floating-point value ranging from -1.0 to 1.0. This controls the balance between cyan and red tones in the image. A positive value increases the amount of red, while a negative value increases the amount of cyan.

  • Magenta-Green: A floating-point value ranging from -1.0 to 1.0. This adjusts the balance between magenta and green tones. A positive value enhances magenta hues, whereas a negative value boosts green tones.

  • Yellow-Blue: A floating-point value ranging from -1.0 to 1.0. This alters the balance between yellow and blue tones. As with the other channels, a positive value increases yellow, and a negative value increases blue.

Outputs

The node produces the following output:

  • Image: The output is an image (or a series of images) where the color balance has been adjusted according to the specified input parameters. This output is suitable for further processing or for display within the ComfyUI system.

Usage in ComfyUI Workflows

In ComfyUI workflows, the LayerColor: ColorBalance node can be utilized wherever color adjustments are necessary. This may include:

  • Image Enhancement: Adjusting color balance to improve the aesthetic appeal of an image or to correct undesirable color casts.

  • Artistic Effects: Achieving specific artistic stylizations by creatively manipulating the color channels to evoke a certain mood or visual theme.

  • Pre-processing: Preparing images with the right color balance before feeding them into other nodes that may perform additional transformations, ensuring consistent output quality.

To use this node, one must connect it within a ComfyUI workflow, supplying the required image input and setting the desired color balance parameters. The node will then process the image and pass the adjusted image downstream for further operations or display.

Special Features and Considerations

  • Preserve Luminosity: The node is designed to maintain the overall luminosity of the image while adjusting the color balance. This feature helps prevent unintended changes to the image's brightness and contrast.

  • Multi-Image Support: The node can handle and process batches of images, making it suitable for workflows that require operation on multiple images in parallel.

  • Compatibility: When dealing with images in the 'RGBA' format, the node ensures that the alpha channel (transparency) is preserved and adjusted correctly.

The LayerColor: ColorBalance node is a versatile tool for anyone working within the ComfyUI environment, providing robust color balancing capabilities essential for both correction and creative endeavors.