Visit ComfyUI Online for ready-to-use ComfyUI environment
Adjust image brightness and contrast for enhanced visual quality and aesthetic control.
The Brightness_Contrast_Ally
node is designed to provide a straightforward interface for adjusting the brightness and contrast of an image before saving it. This node is particularly useful for fine-tuning the visual quality of your images, ensuring they meet your desired aesthetic standards. By allowing you to modify the brightness and contrast, this node helps in enhancing the overall appearance of your images, making them more vibrant or subdued as needed. The adjustments are made using a simple yet effective method that ensures the changes are applied smoothly and consistently.
This parameter represents the input image that you want to adjust. The image should be in a format that the node can process, typically a tensor representation of the image.
The mode
parameter determines whether you want to adjust the brightness or the contrast of the image. It accepts two options: brightness
and contrast
. Selecting brightness
will increase or decrease the lightness of the image, while contrast
will enhance or reduce the difference between the light and dark areas of the image.
The strength
parameter controls the intensity of the brightness or contrast adjustment. It is a float value that ranges from -1.0 to 1.0, with a default value of 0.5. A positive value increases the brightness or contrast, while a negative value decreases it. The step size for adjustments is 0.01, allowing for fine-grained control over the changes.
The enabled
parameter is a boolean that determines whether the brightness or contrast adjustment should be applied. If set to True
, the adjustment is enabled; if set to False
, no changes will be made to the image. The default value is True
.
The output parameter is the adjusted image. This image will have the brightness or contrast modifications applied based on the input parameters. The output is typically in the same format as the input image, ensuring compatibility with subsequent processing steps.
strength
parameter, such as 0.1 or 0.2, to avoid overexposing or underexposing the image.enabled
parameter to quickly toggle the effect on and off, allowing you to compare the original and adjusted images easily.<mode>
. No changes applied.mode
parameter.mode
parameter is set to either brightness
or contrast
.strength
parameter is set to a value outside the allowed range of -1.0 to 1.0.strength
parameter to be within the valid range.enabled
parameter is set to False
, resulting in no changes being applied.enabled
parameter to True
to apply the brightness or contrast adjustment.© Copyright 2024 RunComfy. All Rights Reserved.