Skip to content

Kirby 4.2.0

$dimensions->resize()

Resizes image

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

Parameters

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

Return type

Kirby\Image\Dimensions

This method does not modify the existing $dimensions object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Image\Dimensions