Pages
Sets the number of pages that are stacked vertically in the result.
imgproxy: pages (alias pgs) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\Pages;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new Pages(3));
$url->build();// _/pgs:3/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as pgs:3.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$pages |
int |
required | Number of pages, at least 1. |
- Values below 1 throw an
InvalidArgumentException.