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

ComfyUI Node Documentation: LayerColor: ColorofShadowHighlightV2

Overview

The LayerColor: ColorofShadowHighlightV2 node is designed to adjust the color characteristics of images by modifying the shadows and highlights. This node allows you to fine-tune the brightness, saturation, and hue of both shadows and highlights individually, making it a powerful tool for enhancing images and achieving specific visual effects.

Inputs

The node accepts the following inputs:

  1. Image (Required)

    • Type: IMAGE
    • Description: The image on which the color corrections will be applied. This is the primary input for the node.
  2. Shadow Brightness

    • Type: FLOAT
    • Default: 1
    • Range: 0.0 to 3.0
    • Description: Adjusts the brightness level of the shadow areas in the image. A value greater than 1 increases the brightness, while a value less than 1 decreases it.
  3. Shadow Saturation

    • Type: FLOAT
    • Default: 1
    • Range: 0.0 to 3.0
    • Description: Modifies the color saturation of the shadow areas. Higher values increase saturation, making colors more vivid.
  4. Shadow Hue

    • Type: INT
    • Default: 0
    • Range: -255 to 255
    • Description: Shifts the hue of the shadow areas. This input allows for a creative adjustment of shadow colors within a broad hue range.
  5. Shadow Level Offset

    • Type: INT
    • Default: 0
    • Range: -99 to 99
    • Description: Alters the threshold at which areas are classified as shadows, allowing for more or less area to be affected by shadow adjustments.
  6. Shadow Range

    • Type: FLOAT
    • Default: 0.25
    • Range: 0.01 to 0.99
    • Description: Determines the range of luminance values considered as shadows. Fine-tuning this input can achieve smoother transition effects.
  7. Highlight Brightness

    • Type: FLOAT
    • Default: 1
    • Range: 0.0 to 3.0
    • Description: Controls the brightness of highlight areas. Increasing or decreasing this input will affect how bright or dim the highlights appear.
  8. Highlight Saturation

    • Type: FLOAT
    • Default: 1
    • Range: 0.0 to 3.0
    • Description: Adjusts the saturation level of the highlight areas, making colors in highlights more or less pronounced.
  9. Highlight Hue

    • Type: INT
    • Default: 0
    • Range: -255 to 255
    • Description: Changes the hue of the highlight areas, enabling a shift in highlight color tones.
  10. Highlight Level Offset

    • Type: INT
    • Default: 0
    • Range: -99 to 99
    • Description: Modifies the threshold for what is considered a highlight area, expanding or contracting the space affected.
  11. Highlight Range

    • Type: FLOAT
    • Default: 0.25
    • Range: 0.01 to 0.99
    • Description: Sets the range of luminance values classified as highlights for more precise control over highlight corrections.
  12. Mask (Optional)

    • Type: MASK
    • Description: A mask image that specifies which parts of the input image will be affected by the adjustments. This allows for selective modification.

Outputs

  1. Image
    • Type: IMAGE
    • Description: The processed image with color-corrected shadows and highlights based on the parameters provided. This output can be used as an enhanced version of the input image within workflows.

Usage in ComfyUI Workflows

The LayerColor: ColorofShadowHighlightV2 node can be effectively used in workflows that involve image enhancement, stylization, and color correction. Some common applications include:

  • Image Enhancement: Improve images by adjusting shadow and highlight properties, making photos look more balanced and visually appealing.
  • Artistic Adjustments: Experiment with creative color shifts in shadows and highlights to produce unique artistic effects.
  • Selective Correction: Use a mask to apply changes only to specific areas of an image, such as enhancing the subject while maintaining background tones.

Special Features and Considerations

  • Broad Control Range: This node offers a wide range of adjustments for both shadows and highlights, providing significant creative flexibility.
  • Selective Processing: The optional mask input allows for selective application of corrections, making it ideal for targeted editing.
  • Advanced Customization: Parameters like level offset and range offer advanced users precise control over which areas of the image are altered.

This node can be an essential component in complex image processing pipelines, offering detailed control over color modifications in shadows and highlights, resulting in enhanced and stylized outputs tailored to the user's specific requirements.