$media->isPortrait()

Checks if an image file has been taken in portrait mode

  • return (boolean)

Example

<?php if($media->isPortrait()): ?>
This image has been taken in portrait mode
<?php endif ?>

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