Imagick
PHP Manual

Imagick::cropThumbnailImage

(PECL imagick 2.0.0)

Imagick::cropThumbnailImageCreates a crop thumbnail

说明

bool Imagick::cropThumbnailImage ( int $width , int $height )

Creates a fixed size thumbnail by first scaling the image up or down and cropping a specified area from the center.

参数

width

The width of the thumbnail

height

The Height of the thumbnail

返回值

成功时返回 TRUE .

错误/异常

错误时抛出 ImagickException .


Imagick
PHP Manual