$file->height()

Returns the height of image files in pixels

  • return (integer)

Example

<?= $page->image()->height(); ?>

2.3.0 +

Resizing the height

By passing a value, you can also use the $file->height() method to resize the image by height:

echo $page->image('my-image.jpg')->height(300);

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