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;
}
?>(PECL imagick 2, PECL imagick 3)
Imagick::getImageDelay — Lee el retraso de la imagen
Esta función no contiene ningún parámetro.
Devuelve el retraso de la imagen. Emite una excepción ImagickException en caso de fallo.
Lanza una ImagickException en caso de error.
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;
}
?>