Gmagick::cropthumbnailimage
PHP Manual
PHP Manual»Gmagick»Gmagick::cropthumbnailimage

Gmagick::cropthumbnailimage

(PECL gmagick >= Unknown)

Gmagick::cropthumbnailimageCreates a crop thumbnail

Опис

public function Gmagick::cropthumbnailimage(int $width, int $height): Gmagick

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

Параметри

width
The width of the thumbnail.
height
The Height of the thumbnail.

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

The cropped Gmagick object.

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

Викидає GmagickException у разі помилки.

To Top