PHP | Gmagick getimageheight() Function Last Updated : 23 Jan, 2020 Comments Improve Suggest changes Like Article Like Report The Gmagick::getimageheight() function is an inbuilt function in PHP which is used to get the image height which is the vertical length of the image. Syntax: int Gmagick::getimageheight( void ) Parameters: This function doesn’t accept any parameters. Return Value: This function returns an integer value containing the height of image. Exceptions: This function throws GmagickException on error. Below given programs illustrate the Gmagick::getimageheight() function in PHP: Used Image: Program 1: php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Get the image height $height = $gmagick->getimageheight(); echo $height; ?> Output: 184 Program 2: php <?php // Create a new Gmagick object $gmagick = new Gmagick('geeksforgeeks.png'); // Set the image height $gmagick->scaleimage(200, 200); // Get the image height $height = $gmagick->getimageheight(); echo $height; ?> Output: 200 Reference: https://www.php.net/manual/en/gmagick.getimageheight.php Comment More infoAdvertise with us Next Article PHP | Gmagick getimageheight() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Gmagick Similar Reads PHP | Imagick getImageHeight() Function The Imagick::getImageHeight() function is an inbuilt function in PHP which is used to get the height of the image. Syntax: int Imagick::getImageHeight( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns the image height in pixels. Original Image: Bel 1 min read PHP | Gmagick getimagewidth() Function The Gmagick::getimagewidth() function is an inbuilt function in PHP which is used to get the image width which is the horizontal length of the image. Syntax: int Gmagick::getimagewidth( void ) Parameters:This function doesnât accept any parameter. Return Value: This function returns an integer value 1 min read PHP | Gmagick getimagedepth() Function The Gmagick::getimagedepth() function is an inbuilt function in PHP which is used to gets the depth of the image. Syntax: int Gmagick::getimagedepth( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns the depth of image. Below programs illustrate the 1 min read PHP | Imagick getImageLength() Function The Imagick::getImageLength() function is an inbuilt function in PHP which is used to get the length of an image object in bytes. Syntax: bool Imagick::getImageLength( void) Parameters: This function does not accept any parameter. Return Value: This function returns the image length in bytes. Below 1 min read PHP | Gmagick getimagewhitepoint() Function The Gmagick::getimagewhitepoint() function is an inbuilt function in PHP which is used to get the chromaticity white point as an associative array with the keys "x" and "y". Syntax: array Gmagick::getimagewhitepoint( void ) Parameters:This function doesnât accepts any parameter. Return Value: This f 1 min read Like