Skip to content

Kirby 3.9.8

$filemodifications->crop()

Crops the image by the given width and height

$filemodifications->crop(int $width, ?int $height = null, string|array $options = null): Kirby\Cms\FileVersion|Kirby\Cms\File

Parameters

Name Type Default
$width * int
$height int|null null
$options string|array null

Return type

Kirby\Cms\FileVersion|Kirby\Cms\File

Parent class

Kirby\Cms\FileModifications