A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
The LayerColor: Color of Shadow & Highlight node in ComfyUI is designed to adjust the color characteristics of shadows and highlights in an image. It manipulates the brightness, saturation, and hue of both shadow and highlight areas, allowing for precise color correction and artistic control over the image's lighting and coloring.
The node requires several inputs that allow users to control the coloring and intensity of shadows and highlights. Here's a breakdown of these inputs:
Image: The input image that you wish to process. The node uses this image to identify and adjust shadow and highlight regions.
Shadow Brightness: A float value ranging from 0.0
to 3.0
with a default of 1.0
. This controls how bright the shadow areas will appear.
Shadow Saturation: A float value ranging from 0.0
to 3.0
with a default of 1.0
. Modifying this will change the saturation or intensity of colors in the shadow areas.
Shadow Hue: An integer value ranging from -255
to 255
with a default of 0
. This input adjusts the hue of the shadow areas.
Shadow Level Offset: An integer ranging from -99
to 99
, defaulting to 0
. This parameter shifts the level of shadow areas, effectively widening or narrowing the shadow range.
Shadow Range: A float value from 0.01
to 0.99
with a default of 0.25
. This defines the proportion of the image that is considered shadow.
Highlight Brightness: A float value from 0.0
to 3.0
, also defaulting to 1.0
. It adjusts the brightness of highlight areas.
Highlight Saturation: A float value from 0.0
to 3.0
with a default of 1.0
, affecting the saturation of colors in highlight regions.
Highlight Hue: An integer value ranging from -255
to 255
with a default of 0
. This changes the hue of the highlight areas.
Highlight Level Offset: An integer from -99
to 99
, defaulting to 0
. This shifts the level of highlights to control the range.
Highlight Range: A float value from 0.01
to 0.99
, with a default of 0.25
. Defines how much of the image is considered highlight.
The node produces:
This node is versatile and can be used in multiple ways within ComfyUI workflows:
Color Correction: Adjust the color balance in an image to correct the lighting and create a more natural or intended artistic effect.
Artistic Effects: Dramatically alter the look and feel of an image by enhancing or subduing shadows and highlights.
Preparation for Compositing: Improved control over tonal ranges can help in preparing images for compositing activities, allowing for better integration with other elements.
Selective Adjustments: When used with masks, selective adjustments can be applied to specific parts of an image for targeted corrections.
Range Control: Both shadow and highlight adjustments can be carefully controlled by adjusting the range and level offset parameters, allowing fine-grained control over tonal areas.
Mask Support: The optional mask input is crucial for users needing selective control, providing the ability to limit adjustments to specific image areas.
Batch Support: The node can handle multiple images in a batch, processing each based on its settings and producing consistent results across a series of inputs.
This node is a powerful tool in image processing workflows within ComfyUI, offering expansive and creative control over shadow and highlight coloring practices.