Skip to content

Saturation

Adjusts the saturation of the image.

imgproxy: saturation (alias sa) · Availability: imgproxy Pro only

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

The option appears in the URL as sa:1.3.

Parameter Type Default Description
$saturation float required A positive factor. 1 leaves the image unchanged.

imgproxy reference