ComfyUI Node: Gamma

Class Name

Gamma

Category
ImageProcessing
Author
bvhari (Account age: 1432days)
Extension
ImageProcessing
Latest Updated
2024-08-03
Github Stars
0.02K

How to Install ImageProcessing

Install this extension via the ComfyUI Manager by searching for ImageProcessing
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ImageProcessing 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Gamma Description

Adjust gamma levels for image enhancement, brightness, and contrast control, ensuring vibrant colors and visible details.

Gamma:

The Gamma node is a powerful tool in image processing that allows you to adjust the gamma levels of an image, which can significantly enhance the visual quality and appearance of your artwork. Gamma correction is a nonlinear operation used to encode and decode luminance or tristimulus values in images. By adjusting the gamma value, you can control the brightness and contrast of an image, making it appear more natural or stylized according to your artistic vision. This node is particularly useful for correcting images that appear too dark or too bright, ensuring that the details are visible and the colors are vibrant. The Gamma node is designed to be user-friendly, providing a straightforward way to apply gamma correction to your images, enhancing their overall aesthetic appeal.

Gamma Input Parameters:

images

This parameter represents the input image or images that you want to process. The node expects images in a specific format, typically as tensors, which allows for efficient manipulation and transformation. The images are the primary data on which the gamma correction will be applied.

gamma_value

The gamma_value parameter is a floating-point number that determines the level of gamma correction applied to the images. It has a default value of 1.0, which means no change to the image. Values less than 1.0 will make the image appear darker, while values greater than 1.0 will make it appear brighter. The parameter allows for fine-tuning with a minimum value of 0.0 and a maximum of 10.0, with increments of 0.01, providing precise control over the image's brightness and contrast.

Gamma Output Parameters:

IMAGE

The output of the Gamma node is the processed image or images with the applied gamma correction. This output retains the original format of the input images but with adjusted brightness and contrast according to the specified gamma value. The result is an image that is visually enhanced, with improved detail visibility and color vibrancy, making it more suitable for artistic purposes or further processing.

Gamma Usage Tips:

  • Experiment with different gamma_value settings to achieve the desired brightness and contrast in your images. Start with small adjustments to see how the image responds before making larger changes.
  • Use the Gamma node in conjunction with other image processing nodes like Brightness or Saturation to create a more comprehensive enhancement of your images, tailoring them to your specific artistic needs.

Gamma Common Errors and Solutions:

"Invalid image format"

  • Explanation: This error occurs when the input images are not in the expected format, such as a non-tensor format.
  • Solution: Ensure that your images are correctly formatted as tensors before inputting them into the Gamma node.

" Gamma value out of range"

  • Explanation: This error indicates that the gamma_value provided is outside the acceptable range of 0.0 to 10.0.
  • Solution: Adjust the gamma_value to be within the specified range, ensuring it is between 0.0 and 10.0, with increments of 0.01.

Gamma Related Nodes

Go back to the extension to check out more related nodes.
ImageProcessing
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.