$file->dimensions()

Returns the $dimensions object for the file. This is only available for images (jpg, png, gif)

  • return ($dimension)

Example

$dimensions = $page->image()->dimensions();

echo $dimensions->width();
echo $dimensions->height();