Imagick
在线手册:中文 英文
PHP手册

Imagick::getImageDelay

(PECL imagick 2.0.0)

Imagick::getImageDelayGets the image delay

说明

int Imagick::getImageDelay ( void )

Gets the image delay.

返回值

Returns the image delay.

错误/异常

错误时抛出 ImagickException .


Imagick
在线手册:中文 英文
PHP手册
PHP手册 - N: Gets the image delay

用户评论:

jabaga at abv dot bg (18-Sep-2011 04:31)

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;
}
?>