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.0.0)
Imagick::getImageDelay — Lit le délai de l'image
Lit le délai de l'image.
Retourne le délai de l'image. Émet une exception ImagickException en cas d'échec.
Lance une exception ImagickException si une erreur survient.
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;
}
?>