$media->orientation()

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

  • return (string)

Example

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

Is something missing or incorrect? Edit this page on Github…