(PECL imagick 2.0.0)
Imagick::getImageDelay — Gets the image delay
Gets the image delay.
Returns the image delay.
错误时抛出 ImagickException。
jabaga at abv dot bg (2011-09-18 08:31:46)
Here is how you can get the delay between the frames in gif file:
<?php
$animation = new Imagick("file.gif");
foreach ($animation as $frame) {
$delay = $animation->getImageDelay();
echo $delay;
}
?>