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

LayerColor: YUV Node Documentation

Overview

The LayerColor: YUV node is a component designed for use in ComfyUI workflows that allows users to perform color correction on images based on the YUV color space. This node enables fine-tuning of the luminance (Y) and chrominance (U and V) channels of an image, which can help in achieving desired color balance and contrasts.

Inputs

The LayerColor: YUV node requires the following inputs:

  • Image (Required): This is the primary input of type IMAGE. It represents the image that will undergo color correction.

  • Y (Required): This is an integer input that adjusts the luminance channel of the image. It can range from -255 to 255, with a default value of 0. Modifying this value will lighten or darken the image.

  • U (Required): This integer input adjusts the U chrominance channel, affecting blue to yellow color balance. Its range is also -255 to 255, with a default value of 0.

  • V (Required): This integer input modifies the V chrominance channel, influencing red to green color balance. It also ranges from -255 to 255, with a default setting of 0.

Outputs

The output of the LayerColor: YUV node is:

  • Image (Output): The output is a processed image that has been color corrected based on the specified adjustments to the Y, U, and V channels. This is output as an IMAGE type for further use in the workflow.

Usage in ComfyUI Workflows

The LayerColor: YUV node is useful in workflows where precise color correction or adjustments are desired. Here are a few example use cases:

  1. Image Enhancement: Use the node to enhance images by adjusting their brightness and color balance, making them more visually appealing.

  2. Color Correction: For tasks requiring accurate representation of colors, such as in photo editing, the node can help achieve the desired effect by fine-tuning YUV channels.

  3. Creative Effects: Artists might use this node to apply specific color grading effects to images for creative projects.

  4. Pre-Processing: Before applying other image processing techniques or filters, the node can be used to ensure optimal color conditions.

Special Features or Considerations

  • Non-Destructive Edits: As part of a UI workflow, adjustments made using the LayerColor: YUV node are non-destructive, meaning they do not overwrite the original image data.

  • Batch Processing: The node can process multiple images at a time, as indicated by its ability to handle image arrays, making it efficient for workflows involving large sets of images.

  • Compatibility: The node integrates smoothly with other ComfyUI nodes and adheres to the framework's standards for input and output types.

  • Performance Logging: The node logs the number of images processed, providing useful feedback on batch operations.

This documentation serves as a guide for users looking to utilize the LayerColor: YUV node within their ComfyUI workflows. For the latest updates or changes, you may refer to the repository on GitHub.