Skip to content

Kirby 5.6.3

$svg->ratio()

Returns the ratio of the width and height

$svg->ratio(): float

Return type

float

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

Parent class

Kirby\Image\Svg