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 // Create a new Gmagick object $gmagickAnimation = new Gmagick('g4gnanimation1.gif'); // Get the delay $delay = $gmagickAnimation->getimagedelay(); echo $delay; ?> |
Output:
100 // which means 1 second.
Program 2:
<?php // Create a new Gmagick object $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

… [Trackback]
[…] Read More on on that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]
… [Trackback]
[…] Find More here on that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]
… [Trackback]
[…] Here you will find 87915 more Info to that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]
… [Trackback]
[…] Find More Info here on that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]
… [Trackback]
[…] Read More Information here to that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]
… [Trackback]
[…] Read More on to that Topic: geeksforgeeks.org/php-gmagick-getimagedelay-function-2/ […]