Dpi
Replaces the DPI metadata of the image.
imgproxy: dpi · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\Dpi;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new Dpi(300));
$url->build();// _/dpi:300/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as dpi:300.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$dpi |
int |
required | DPI value. 0 leaves the metadata unchanged, or resets it when metadata is stripped. |