$file->isSquare()

Checks if the image is square

  • return (boolean)

Example

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

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