❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$media->ratio()
Returns the ratio of an image file
return
(float)
Example
echo $media->ratio(); // i.e. 1.345232
↑
Toolkit API overview
←
$media->orientation()
→
$media->read($format = null)
↓
Back to Toolkit API section
Top