$file->ratio()

Returns the ratio of an image file

Example

echo $page->image('my-image.jpg')->ratio();
// i.e. 1.345232