MinWidth
Sets the minimum width of the resulting image.
imgproxy: min-width (alias mw) · Availability: all editions
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\MinWidth;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new MinWidth(200));
$url->build();// _/mw:200/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as mw:200.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$width |
int |
required | Minimum width in pixels. 0 disables the limit. |