The Imagick class
PHP 手册

Imagick::resizeImage

(PECL imagick 2.0.0)

Imagick::resizeImageScales an image

说明

bool Imagick::resizeImage ( int $columns , int $rows , int $filter , float $blur [, bool $fit=false ] )
Warning

本函数暂无文档,仅有参数列表。

Scales an image to the desired dimensions with a filter.

参数

columns

Width of the image

rows

Height of the image

filter

Refer to the list of filter constants.

blur

The blur factor where > 1 is blurry, < 1 is sharp.

fit

Optional fit parameter. Defaults to false.

返回值

Returns TRUE on success.

更新日志

版本 说明
2.1.0 Added optional fit parameter. This method now supports proportional scaling. Pass zero as either parameter for proportional scaling.


The Imagick class
PHP 手册