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.jpgThe option appears in the URL as br:20.
Parameters
Section titled “Parameters”| 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.