• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • Imagick::getImageDelay()

    (PECL imagick 2.0.0)

    Gets the image delay

    说明

    Imagick::getImageDelay(void): int

    Gets the image delay.

    返回值

    Returns the image delay.

    错误/异常

    错误时抛出 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;
    }
    ?>
    
    Seems to return the image delay in centiseconds