php8.5
Home/ Manual/ imagick / imagick/ Imagick::setSize

Imagick::setSize

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Sets the size of the Imagick object

Description

Imagick::setSize(int $columns, int $rows): bool

Sets the size of the Imagick object. Set it before you read a raw image format such as RGB, GRAY, or CMYK.

Parameters

columns
rows

Return Values

Success

Source: reference/imagick/imagick/setsize.xml · from the official PHP manual (php/doc-en)