UnsharpMasking
Applies unsharp masking. It overrides the imgproxy configuration.
imgproxy: unsharp_masking (alias ush) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\UnsharpMasking;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new UnsharpMasking('auto'));
$url->build();// _/ush:auto/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as ush:auto.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$mode |
string |
— | The masking mode, such as auto. |
$weight |
float |
— | Weight of the mask. |
$divider |
float |
— | Divider of the mask. |
A dash means the argument can be left out. Trailing arguments that are left out or null are dropped from the URL, while a null before a given argument leaves an empty slot, so the following arguments keep their position.
- All arguments are optional. See the imgproxy reference for the available modes.