PHP | Gmagick getimagedelay() Function Last Updated : 21 Jan, 2020 Comments Improve Suggest changes Like Article Like Report The Gmagick::getimagedelay() function is an inbuilt function in PHP which is used to get the image delay. The delay is actually the time taken for the transition from one image to another in a gif animation. Syntax: int Gmagick::getimagedelay( void ) Parameters: This function doesn’t accepts any parameters. Return Value: This function returns an integer value containing the image delay in centiseconds (100centi = 1sec). Exceptions: This function throws GmagickException on error. Below given programs illustrate the Gmagick::getimagedelay() function in PHP: Program 1: php <?php // Create a new Gmagick object // https://media.geeksforgeeks.org/wp-content/uploads/20191117145951/g4gnaimation1.gif $gmagickAnimation = new Gmagick('g4gnanimation1.gif'); // Get the delay $delay = $gmagickAnimation->getimagedelay(); echo $delay; ?> Output: 100 // which means 1 second. Program 2: php <?php // Create a new Gmagick object // https://media.geeksforgeeks.org/wp-content/uploads/20191117145951/g4gnaimation1.gif $gmagickAnimation = new Gmagick('g4gnanimation1.gif'); // Set the delay $gmagickAnimation->setimagedelay(200); // Get the delay $delay = $gmagickAnimation->getimagedelay(); echo $delay; ?> Output: 200 Reference: https://www.php.net/manual/en/gmagick.getimagedelay.php Comment More infoAdvertise with us Next Article PHP | Gmagick getimagedelay() Function G gurrrung Follow Improve Article Tags : Web Technologies PHP PHP-function PHP-Gmagick Similar Reads 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 | Gmagick getimagetype() Function The Gmagick::getimagetype() function is an inbuilt function in PHP which is used to get the image type. Syntax: int Gmagick::getimagetype( void ) Parameters: This function doesnât accept any parameters. Return Value: This function returns an integer value corresponding to one of the IMGTYPE constant 1 min read PHP | Gmagick getImageDispose() Function The Gmagick::getImageDispose() function is an inbuilt function in PHP which is used to return the image disposal method. Syntax: int Gmagick::getImageDispose( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the dispose method on success. Below prog 1 min read PHP | Gmagick getimageextrema() Function The Gmagick::getimageextrema() function is an inbuilt function in PHP which is used to get the extrema for an image. Extrema are the points at which a maximum or minimum value of a function is observed. Syntax: array Gmagick::getimageextrema( void ) Parameters:This function doesnât accept any parame 1 min read PHP | Gmagick getimagescene() Function The Gmagick::getimagescene() function is an inbuilt function in PHP which is used to get the image scene of an image. Syntax: int Gmagick::getimagescene( void ) Parameters: This function does not accept any parameter. Return Value: This function returns the image scene. Errors/Exceptions: This funct 1 min read Like