Skip to content

Kirby 3.5.7.1

$dimensions->crop()

Crops the dimensions by width and height

$dimensions->crop(int $width, int $height = null): Kirby\Image\Dimensions

Parameters

Name Type Default
$width * int
$height int null

Return type

Kirby\Image\Dimensions

This method modifies the existing $dimensions object it is applied to and returns it again.

Parent class

Kirby\Image\Dimensions