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 — Возвращает задержку изображения
Сигнатура функции не содержит параметров.
Возвращает задержку изображения.
При ошибке функция выбрасывает исключение ImagickException.
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;
}
?>