Pageimage::maxSize()
Return an image no larger than the given width and height
Usage
// basic usage
$pageimage = $pageimage->maxSize(int $width, int $height);
// usage with all arguments
$pageimage = $pageimage->maxSize(int $width, int $height, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$width | int | Max allowed width |
$height | int | Max allowed height |
$options (optional) | array | See
|
Return value
Pageimage methods and properties
API reference based on ProcessWire core version 3.0.252