LayerColor: Exposure Node Documentation
Overview
The LayerColor: Exposure node is a component of the ComfyUI layer style suite found in the ComfyUI_LayerStyle GitHub repository. This node is used to adjust the exposure of images, altering the intensity of light in the image to either make it appear brighter or darker. It’s particularly useful for fine-tuning the visual style and balance of an image layer within a composition.
Functionality
The LayerColor: Exposure node modifies the exposure level of the input image. Exposure adjustment is a common image processing technique that effectively scales the luminosity of image pixels. By adjusting the exposure, users can brighten or darken an image to achieve their desired aesthetic or to correct for poor lighting conditions in the original image.
Inputs
The LayerColor: Exposure node requires the following inputs:
-
Image:
- Type: IMAGE
- Description: This is the image to which exposure correction will be applied. The node expects one or more image tensors as input.
-
Exposure:
- Type: Integer
- Default Value: 20
- Range: -100 to 100
- Description: This parameter controls the level of exposure adjustment applied to the image. Positive values increase exposure (brightening the image), while negative values decrease exposure (darkening the image). The adjustment is performed in a logarithmic fashion, which is typical for exposure manipulation.
Outputs
The node produces:
- Processed Image:
- Type: IMAGE
- Description: The output is the image or set of images with adjusted exposure levels. The output maintains the same format as the input image(s), ensuring compatibility with other nodes or layers in the ComfyUI workflow.
Usage in ComfyUI Workflows
In the context of ComfyUI workflows, the LayerColor: Exposure node can be integrated into image processing pipelines where exposure correction or enhancement is needed. Users might typically connect this node to a source image node and then direct its output to subsequent processing nodes or directly to the final output display.
Example Use Cases
- Image Brightening: Increase exposure on an image that appears underexposed or too dark due to poor lighting conditions.
- Image Darkening: Decrease exposure to create mood or to correct images that appear overexposed, often creating a more balanced contrast.
- Stylistic Adjustments: Part of a broader workflow where exposure manipulation is desired to match a specific visual style or aesthetic, especially in artistic or design-oriented projects.
Special Features or Considerations
- Exposure Range: The exposure adjustments range from -100 to 100. It’s important to be mindful of these limits to prevent over-processing, which could lead to loss of image detail or unnatural appearance.
- Batch Processing: This node can process multiple images at once if provided as part of an image batch. This feature is useful in workflows that require uniform exposure adjustments across multiple images.
- Preservation of Transparency: If the input image contains transparency (i.e., an alpha channel), the node ensures that this transparency is preserved in the output image.
When integrating this node into a workflow, users should adjust exposure values carefully and preview results to ensure the changes meet their specific requirements.