ComfyUI  >  Nodes  >  AegisFlow Utility Nodes >  brightness contrast

ComfyUI Node: brightness contrast

Class Name

Brightness_Contrast_Ally

Category
AegisFlow/fx
Author
Aegis72 (Account age: 701 days)
Extension
AegisFlow Utility Nodes
Latest Updated
10/3/2024
Github Stars
0.0K

How to Install AegisFlow Utility Nodes

Install this extension via the ComfyUI Manager by searching for  AegisFlow Utility Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter AegisFlow Utility Nodes in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

brightness contrast Description

Adjust image brightness and contrast for enhanced visual quality and aesthetic control.

brightness contrast:

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.

brightness contrast Input Parameters:

image

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.

mode

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.

strength

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.

enabled

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.

brightness contrast Output Parameters:

image

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.

brightness contrast Usage Tips:

  • To achieve subtle adjustments, use small increments in the strength parameter, such as 0.1 or 0.2, to avoid overexposing or underexposing the image.
  • When working with images that have a lot of detail, adjusting the contrast can help in making the details more pronounced.
  • Use the enabled parameter to quickly toggle the effect on and off, allowing you to compare the original and adjusted images easily.

brightness contrast Common Errors and Solutions:

Invalid filter option: <mode>. No changes applied.

  • Explanation: This error occurs when an invalid value is provided for the mode parameter.
  • Solution: Ensure that the mode parameter is set to either brightness or contrast.

Image format not supported.

  • Explanation: This error occurs if the input image is not in a format that the node can process.
  • Solution: Convert the image to a compatible format, typically a tensor representation, before passing it to the node.

Strength value out of range.

  • Explanation: This error occurs if the strength parameter is set to a value outside the allowed range of -1.0 to 1.0.
  • Solution: Adjust the strength parameter to be within the valid range.

Adjustment not applied when enabled is False.

  • Explanation: This is not an error but a common oversight where the enabled parameter is set to False, resulting in no changes being applied.
  • Solution: Set the enabled parameter to True to apply the brightness or contrast adjustment.

brightness contrast Related Nodes

Go back to the extension to check out more related nodes.
AegisFlow Utility Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.