Imagick
PHP Manual

Imagick::getNumberImages

(PECL imagick 2.0.0)

Imagick::getNumberImagesReturns the number of images in the object

说明

int Imagick::getNumberImages ( void )

Returns the number of images associated with Imagick object.

返回值

Returns the number of images associated with Imagick object.

错误/异常

错误时抛出 ImagickException。


Imagick
PHP Manual