$filemodifications->resize()
Resizes the file with the given width and height while keeping the aspect ratio.
$filemodifications->resize(int $width = null, int $height = null, int $quality = null): Kirby\Cms\FileVersion|Kirby\Cms\File
Parameters
| Name | Type | Default |
|---|---|---|
| $width | int |
null |
| $height | int |
null |
| $quality | int |
null |
Return type
Kirby\Cms\FileVersion|Kirby\Cms\File
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |
Parent class
Kirby\Cms\FileModifications