Imagick::cropThumbnailImage
PHP Manual
PHP Manual»Imagick»Imagick::cropThumbnailImage

Imagick::cropThumbnailImage

(PECL imagick 2, PECL imagick 3)

Imagick::cropThumbnailImage — Creates a crop thumbnail

Опис

public function Imagick::cropThumbnailImage(int $width, int $height, bool $legacy = false): bool

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

legacy

Optional bool parameter. If set to true, the calculations are done with the small rounding bug that existed in Imagick before 3.4.0. If set to false, the calculations should produce the same results as the ImageMagick command-line tools.

Значення, що повертаються

Повертає true в разі успіху.

Помилки/виключення

Кидає ImagickException в разі помилки.

Журнал змін

Версія Опис
PECL imagick 3.4.0 Added the legacy parameter.
To Top