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: RGB

LayerColor: RGB Node Documentation

Introduction

The LayerColor: RGB node is a customizable image transformation tool within the ComfyUI framework. This node allows users to apply color corrections to images by adjusting the red, green, and blue (RGB) channels individually. It's particularly useful for enhancing image color tones or correcting unwanted color imbalances, thus enabling users to tailor the visual characteristics of their images to meet specific needs.

Functionality

The primary function of the LayerColor: RGB node is to adjust the color balance of an input image by modifying the intensity levels of the RGB channels. Each channel can be altered independently, allowing for detailed and precise color adjustments. This node processes images using pixel-level manipulation to either increase or decrease the specific color channel's intensity within a defined range.

Inputs

The LayerColor: RGB node accepts the following inputs:

  1. Image:

    • Type: Image
    • Description: The input image to which the RGB color correction will be applied.
  2. R (Red Channel Adjustment):

    • Type: Integer
    • Range: -255 to 255
    • Default Value: 0
    • Description: Adjusts the intensity of the red color channel. Negative values decrease red intensity, while positive values increase it.
  3. G (Green Channel Adjustment):

    • Type: Integer
    • Range: -255 to 255
    • Default Value: 0
    • Description: Adjusts the intensity of the green color channel. Negative values decrease green intensity, while positive values increase it.
  4. B (Blue Channel Adjustment):

    • Type: Integer
    • Range: -255 to 255
    • Default Value: 0
    • Description: Adjusts the intensity of the blue color channel. Negative values decrease blue intensity, while positive values increase it.

Outputs

The LayerColor: RGB node produces the following output:

  1. Image:
    • Type: Image
    • Description: The processed image with adjusted color channels as specified by the input parameters.

Usage in ComfyUI Workflows

In ComfyUI workflows, the LayerColor: RGB node can be used for various image processing tasks where color adjustment is necessary. Common use cases include:

  • Color Correction: Adjusting the color balance of photographs to correct lighting issues or color casts.
  • Artistic Effects: Applying creative color shifts to images for artistic expression or thematic purposes.
  • Pre-processing: Preparing images for further computational tasks by normalizing color profiles.

To integrate the LayerColor: RGB node into a workflow, users typically insert it after an image acquisition or creation step and before any subsequent processing steps that require specific color profiles.

Features and Considerations

  • Precision Control: The node allows for fine-grained control over the color channels, enabling users to make precise adjustments to each channel independently.
  • Multi-Image Processing: Capable of processing multiple images in batch mode, ensuring efficiency in workflows handling large numbers of images.
  • RGBA Compatibility: Maintains image transparency by converting and preserving the alpha channel when handling RGBA images.
  • Logging: The node logs processing activities, providing feedback on the number of images processed and aiding in debugging.

Overall, the LayerColor: RGB node is a versatile and essential component for users needing detailed control over the color properties of their images within ComfyUI.