$file->isSquare()

Checks if the image is square

Example

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