$media->ratio()

Returns the ratio of an image file

  • return (float)

Example

echo $media->ratio();
// i.e. 1.345232