$media->orientation()

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

  • return (string)

Example

echo $media->orientation();
// landscape, portrait or square