$file->isSquare()

Checks if the image is square

  • return (boolean)

Example

<?php if($page->image()->isSquare()): ?>
This image is square
<?php endif ?>