Skip to content

Kirby 6.0.0

$imageFilePreview->ratio()

Aspect ratio for SVGs without their own size, which the preview cannot fit by a natural size

$imageFilePreview->ratio() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$imageFilePreview->ratio(): float|null

Return types

floatornull

Parent class

Kirby\Panel\Ui\FilePreview\ImageFilePreview