PHP | Imagick getPage() Function Last Updated : 26 Nov, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::getPage() function is an inbuilt function in PHP which is used to return the geometry of page associated with Imagick object in associative array format. Syntax: array Imagick::getPage( void ) Parameters:This function does not accept any parameter. Return Value: This function returns an associative array with the keys "width", "height", "x", and "y". Errors/Exceptions: This function throws ImagickException on error. Below programs illustrate the Imagick::getPage() function in PHP: Program 1: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Get the Page Geometry $geometry = $imagick->getPage(); print_r($geometry); ?> Output: Array ( [width] => 0 [height] => 0 [x] => 0 [y] => 0 ) Program 2: php <?php // Create a new imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-13.png'); // Set the Page Geometry $imagick->setPage(200, 300, 0, 0); // Get the Page Geometry $geometry = $imagick->getPage(); print_r($geometry); ?> Output: Array ( [width] => 200 [height] => 300 [x] => 0 [y] => 0 ) Reference: https://www.php.net/manual/en/imagick.getpage.php Comment More infoAdvertise with us Next Article PHP | Imagick getPage() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick getImagePage() Function The Imagick::getImagePage() function is an inbuilt function in PHP which is used to get the page geometry of a particular image. Syntax: array Imagick::getImagePage( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns an array associated with the page 2 min read PHP | Imagick getImageBlob() Function The Imagick::getImageBlob() function is an inbuilt function in PHP which is used to get the image sequence as a blob. It implements direct to the memory image format. This function returns the image sequence as string. Syntax: string Imagick::getImageBlob( void ) Parameters: This function does not a 1 min read PHP | Imagick getPackageName() Function The Imagick::getPackageName() function is an inbuilt function in PHP which is used to get the ImageMagick package name. Syntax: string Imagick::getPackageName( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the ImageMagick package name as a string 1 min read PHP | Imagick getSize() Function The Imagick::getSize() function is an inbuilt function in PHP which is used to get the size associated with the imagick object. Syntax: array Imagick::getSize( void ) Parameters: This function doesnât accepts any parameter. Return Value: This function returns an array with the keys "columns" and "ro 1 min read PHP | Imagick getImageSize() Function The Imagick::getImageSize() function is an inbuilt function in PHP which is used to get the image length in bytes. Syntax: int Imagick::getImageSize( void ) Parameters: This function doesnât accepts any parameter. Return Value: This function returns an integer value containing the current image size 1 min read Like