PHP | Imagick getImageInterations() Function Last Updated : 21 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::getImageIterations() function is an inbuilt function in PHP which is used to get the image iterations. The iteration means how many times the frames should repeat themselves. Syntax: int Imagick::getImageIterations( void ) Parameters: This function doesn't accepts any parameter. Return Value: This function returns an integer value containing the image or frame iterations. Exceptions: This function throws ImagickException on error. Below programs illustrate the Imagick::getImageIterations() 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 interations $iterations = $imagick->getImageIterations(); echo $iterations; ?> Output: 0 // Because it's a still image. Program 2: php <?php // Create a new imagick object $imagickAnimation = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/20191120143630/newanimated.gif'); // Get the interations $iterations = $imagickAnimation->getImageIterations(); echo $iterations; ?> Output: 4 Reference: https://www.php.net/manual/en/imagick.getimageiterations.php Comment More infoAdvertise with us Next Article PHP | Imagick getImageInterations() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Imagick Similar Reads PHP | Imagick getImageOrientation() Function The Imagick::getImageOrientation() function is an inbuilt function in PHP which is used to get the image orientation. Syntax: int Imagick::getImageOrientation( void ) Parameters: This function doesn't accept any parameter. Return Value: This function returns an integer value containing one of ORIENT 1 min read PHP | Imagick getImageRegion() Function The Imagick::getImageRegion() function is an inbuilt function in PHP which is used to extracts a region of the image. Syntax: Imagick Imagick::getImageRegion( int $width, int $height, int $x, int $y ) Parameters:This function accepts four parameters as mentioned above and described below: $width: It 1 min read PHP | Imagick getImageInterlaceScheme() Function The Imagick::getImageInterlaceScheme() function is an inbuilt function in PHP which is used to get the image interlace scheme. Syntax: int Imagick::getImageInterlaceScheme( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an integer value containing 1 min read PHP | Imagick getImageIndex() Function The Imagick::getImageIndex() function is an inbuilt function in PHP which is used to get the index of the current image. Syntax: int Imagick::getImageIndex( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an integer value containing the index of th 1 min read PHP | Imagick getImageProperties() Function The Imagick::getImageProperties() function is an inbuilt function in PHP which is used to get the image properties.Syntax:Â Â array Imagick::getImageProperties( string $pattern, string $includes_values ) Parameters: This function accepts two parameters as mentioned above and described below:Â Â $patte 2 min read Like