Skip to content

Kirby 5.1.2

$dimensions->resize()

Resizes image

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

Parameters

Name Type Default
$width intornull null
$height intornull 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