Skip to content

Kirby 3.7.5

$dimensions->resize()

$dimensions->resize(int $width = null, int $height = null, bool $force = false): Kirby\Image\Dimensions

Parameters

Name Type Default
$width int null
$height int null
$force bool false

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