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;
}
?>
Imagick::getImageDelay
(PECL imagick 2.0.0)
Imagick::getImageDelay — 画像の遅延を取得する
説明
int Imagick::getImageDelay
( void
)
画像の遅延を取得します。
返り値
画像の遅延を返します。
エラー / 例外
エラー時に ImagickException をスローします。
jabaga at abv dot bg ¶
1 year ago
