Imagick::adaptiveResizeImage()
Imagick::adaptiveResizeImage - Adaptively resize image with data dependent triangulation
Syntax
bool Imagick::adaptiveResizeImage (
int $columns,
int $rows,
bool $bestfit)
Arguments
- columns - The number of columns in the scaled image.
- rows - The number of rows in the scaled image.
- bestfit - Whether to fit the image inside a bounding box.
Description
Adaptively resize image with data-dependent triangulation. Avoids blurring across sharp color changes. Most useful when used to shrink images slightly to a slightly smaller "web size"; may not look good when a full-sized image is adaptively resized to a thumbnail. This method is available if Imagick has been compiled against ImageMagick version 6.2.9 or newer.
Version
PHP PECL imagick 2.0.0
Return value
Returns TRUE on success.