$dimension->square()

Checks if the dimensions are square

  • return (boolean)

Example

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