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::roundCornersImagick::scaleImage>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::sampleImage

(PECL imagick 2, PECL imagick 3)

Imagick::sampleImage — Scales an image with pixel sampling

Description

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

Scales an image to the desired dimensions with pixel sampling. Unlike other scaling methods, this method does not introduce any additional color into the scaled image.

Parameters

columns

rows

Return Values

Returns true on success.


<Imagick::roundCornersImagick::scaleImage>
^ImagickLast updated: Mon, 26 Oct 2026