$file->orientation()

Returns the orientation of image files as a string (landscape, portrait, square)

  • return (string)

Example

echo $page->image('my-image.jpg')->orientation();
// landscape, portrait or square