Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Imagick::setSizeImagick::setType>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::setSizeOffset

(PECL imagick 2, PECL imagick 3)

Imagick::setSizeOffset — Sets the size and offset of the Imagick object

Description

public function Imagick::setSizeOffset(int $columns, int $rows, int $offset): bool

Sets the size and offset of the Imagick object. Set it before you read a raw image format such as RGB, GRAY, or CMYK. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.

Parameters

columns

The width in pixels.

rows

The height in pixels.

offset

The image offset.

Return Values

Returns true on success.


<Imagick::setSizeImagick::setType>
^ImagickLast updated: Mon, 26 Oct 2026