Skip to main content

Image Brightness

Controlled node

Overview

The Image Brightness node adjusts the brightness of an input image. It accepts a brightness value between -1 (completely dark) and +1 (completely bright), allowing you to lighten or darken images as part of your workflow. This node uses the Jimp image processing library to perform the brightness adjustment on a clone of the original image, leaving the source image unchanged.

Inputs

InputTypeDescriptionDefault
RunEventFires when the node starts processing the image.-
ImageDataThe input image to adjust. Accepts a Jimp image object.-
BrightnessNumberThe brightness adjustment value. Range is -1 to +1, where 0 is no change, -1 is completely black, and +1 is completely white.0

Outputs

OutputTypeDescription
DoneEventFires when the image processing is complete.
OutputDataThe processed image with adjusted brightness as a Jimp image object.

Runtime Behavior and Defaults

When triggered, the node clones the input image to avoid modifying the original, then applies the brightness adjustment using Jimp's brightness method. The brightness value is clamped to the valid range of -1 to +1. If no brightness value is provided, the node defaults to 0 (no change), outputting an identical copy of the input image.

Example Usage

Connect an image source (such as a Read Image node or AI Generate Image node) to the Image input. Set the Brightness value to 0.5 to increase brightness, or -0.3 to decrease it. Connect the Output to subsequent image processing nodes like Image Contrast, Resize Image, or Write To Library to save the result.

[Read Image] ──Image──> [Image Brightness] ──Output──> [Write To Library]

Brightness: 0.5