Skip to content

Brightness

Adjusts the brightness of the image.

imgproxy: brightness (alias br) · Availability: imgproxy Pro only

use SomehowDigital\ImgProxy\Url;
use SomehowDigital\ImgProxy\Option\Brightness;
$url = Url::create()
->source('https://example.com/image.jpg')
->options(new Brightness(20));
$url->build();
// _/br:20/plain/https%3A%2F%2Fexample.com%2Fimage.jpg

The option appears in the URL as br:20.

Parameter Type Default Description
$brightness int required An integer from -255 to 255. 0 leaves the image unchanged.
  • Values outside the range throw an InvalidArgumentException.

imgproxy reference