$fileModifications->crop()
Crops the image by the given width and height
$fileModifications->crop(int $width, int|null $height = null, $options = null): Kirby\Cms\FileVersion|Kirby\Cms\File|Kirby\Filesystem\Asset
Parameters
Name | Type | Default |
---|---|---|
$widthrequired | int |
no default value |
$height | int ornull |
null
|
$options | mixed |
null
|
Return types
Kirby\Cms\FileVersion
orKirby\Cms\File
orKirby\Filesystem\Asset
This method modifies the existing $filemodifications
object it is applied to and returns it again.
Parent class
Kirby\Cms\FileModifications