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 — Obtém o atraso da imagem
Esta função não possui parâmetros.
Retorna o atraso da imagem.
Lança uma exceção ImagickException em caso de erro.
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;
}
?>