$file->isPortrait()

Checks if an image file has been taken in portrait mode

  • return (boolean)

Example

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