Contrast
Adjusts the contrast of the image.
imgproxy: contrast (alias co) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\Contrast;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new Contrast(1.2));
$url->build();// _/co:1.2/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as co:1.2.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$contrast |
float |
required | A positive factor. 1 leaves the image unchanged. |