Skip to content

Kirby 5.2.0

Focus::ratio()

Calculates the image ratio

Focus::ratio(int $width, int $height): float

Parameters

Name Type Default
$widthrequired int no default value
$heightrequired int no default value

Return type

float

Parent class

Kirby\Image\Focus