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

LayerColor: LAB Node Documentation

Overview

The "LayerColor: LAB" node is a component in ComfyUI designed to apply color adjustments to images using the LAB color space. This node provides a powerful method for enhancing or altering the visual appearance of images by manipulating their lightness (L) and color channels (A and B).

Node Functionality

The primary function of the LayerColor: LAB node is to adjust the L (Lightness), A, and B components of an image. These adjustments can be used to correct or stylistically modify the color balance and brightness of images in a workflow.

Inputs

The node accepts the following inputs:

  • Image: This is the primary input, where users can provide one or more images for processing. The images should be in a format compatible with the node's requirements.

  • L (Lightness): An integer value that determines the adjustment of the lightness channel in the LAB color space. The value can range from -255 to 255, with 0 indicating no change. Positive values increase lightness, while negative values decrease it.

  • A (Green–Red): An integer value that adjusts the green-red color channel. The adjustable range is from -255 to 255. Positive values increase red tones, while negative values add green.

  • B (Blue–Yellow): An integer value that adjusts the blue-yellow color channel. Values can vary from -255 to 255. Positive values enhance yellow tones, whereas negative values augment blue tones.

Outputs

The node produces the following output:

  • Image: The output is an image or set of images that have undergone color adjustments based on the specified inputs. The processed image maintains the original format unless it is adjusted from an RGBA mode, in which case the output seamlessly includes necessary transparency adjustments.

Usage in ComfyUI Workflows

This node can be integrated into various ComfyUI workflows where image color correction or styling is desired. For example, it can be used in a photo editing application to enhance the vibrancy of photographs or in a content creation pipeline to achieve specific artistic effects.

Users can implement the LayerColor: LAB node to:

  • Correct color imbalances in photographic images.
  • Create images with specific color themes by adjusting lightness and color channels.
  • Enhance image features that rely on color differentiation, such as product photography or art reproductions.

Special Features & Considerations

  • Color Space Understanding: The LAB color space is different from the more common RGB color space, focusing on human visual perception. Adjustments can result in more visually pleasing results compared to other color spaces.

  • Non-Destructive Editing: Since the node processes images in a separate layer, the original images remain unchanged. This approach allows users to test and refine adjustments without losing original data.

  • Batch Processing: The node can handle multiple images in a single operation, making it efficient for tasks that require consistent edits across a series of images.

  • Transparency Handling: The node integrates smoothly with images that have transparency (e.g., RGBA images), ensuring that any transparency present in the input images is properly managed in the output.

For more information and to see this node in action, visit the ComfyUI LayerStyle GitHub repository.