Image::height

Get the height in pixels of the current image

2.8M Downloads / Month

Open Source MIT License

You are viewing the documentation for Intervention Image 2, this version has reached EOL. Please consider upgrading to version 3.

public Intervention\Image\Image height()

Returns the height in pixels of the current image.

Parameters

none

Return Values

Height of current image as integer

Examples

// read height of image
$height = Image::make('public/foo.jpg')->height();

See also

Edit