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

ComfyUI Node Documentation: LayerColor: AutoAdjust

Overview

The LayerColor: AutoAdjust node in ComfyUI is designed to automatically adjust various properties of an input image. This node is categorized under 😺dzNodes/LayerColor and is part of the ComfyUI_LayerStyle repository. By modifying attributes such as brightness, contrast, saturation, and color balance, the node enhances the visual appeal of images according to user-defined parameters.

Functionality

The LayerColor: AutoAdjust node offers a flexible approach to image enhancement, allowing users to fine-tune their images with control over multiple image characteristics. This node processes each image individually and applies adjustments according to specified input values, ultimately returning the modified image.

Inputs

The node accepts the following inputs:

  • Image: The primary input for the node. This is the image on which adjustments will be applied.

  • Strength: An integer value ranging from 0 to 100, with a default of 100. This parameter controls the intensity of the applied adjustments.

  • Brightness: A value between -100 and 100, with a default of 0. Negative values will decrease brightness, while positive values will increase it.

  • Contrast: A value between -100 and 100, with a default of 0. Negative values reduce contrast, whereas positive values enhance it.

  • Saturation: An integer between -100 and 100, defaulting to 0. This parameter adjusts the intensity of colors; negative values desaturate the image, and positive values make colors more vivid.

  • Red: Adjusts the red channel balance from -100 to 100, defaulting to 0. This modifies the hue related to red tones in the image.

  • Green: Adjusts the green channel balance from -100 to 100, defaulting to 0. This modifies the hue related to green tones in the image.

  • Blue: Adjusts the blue channel balance from -100 to 100, defaulting to 0. This modifies the hue related to blue tones in the image.

Outputs

The node outputs:

  • Image: The adjusted image is returned, which has been modified based on the input parameters. This allows for further use or display in ComfyUI workflows.

Usage in ComfyUI Workflows

The LayerColor: AutoAdjust node can be integrated into ComfyUI workflows to enhance image processing pipelines. Here are some potential use cases:

  • Image Correction: Automatically improve poorly lit images by adjusting brightness and contrast.

  • Artistic Filters: Create desired artistic effects by modifying saturation and color channels for distinct visual styles.

  • Batch Processing: Apply consistent adjustments across a series of images for uniform color grading.

To add this node to your workflow, ensure ComfyUI is configured to include the ComfyUI_LayerStyle repository found at https://github.com/chflame163/ComfyUI_LayerStyle.

Special Features and Considerations

  • Customizable Parameters: Each image can be customized with specific adjustments according to user preferences, providing high flexibility.

  • Batch Processing Capability: This node efficiently handles multiple images concurrently, making it ideal for processing large datasets.

  • Gamma Correction: The node applies gamma correction based on the balance of each color channel, ensuring natural-looking color adjustments.

  • Preservation of Transparency: For images with transparency (RGBA), the node preserves the alpha channel during adjustments, maintaining the integrity of transparent areas.

This node is essential for users seeking comprehensive and flexible image adjustment capabilities within their ComfyUI workflows.