编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Imagick::cropImage
  • Imagick::current »
  • PHP Manual
  • Imagick
  • 创建缩略图

Imagick::cropThumbnailImage

(PECL imagick 2.0.0)

Imagick::cropThumbnailImage — 创建缩略图

说明

Imagick::cropThumbnailImage ( int $width , int $height ) : bool

首先将图片放大或者缩小,然后从图片的中间裁剪到指定的的大小。

参数

width

缩略图的宽

height

缩略图的高

返回值

成功时返回 TRUE。

错误/异常

错误时抛出 ImagickException。

相关文章
php fann 函数 创建一个含快捷连接而非全连接的标准反向传播神经网络。php imagick adds adaptive blur filter to imagephp imagick descriptionphp imagick returns the difference in one or more imagesphp imagick 创建缩略图php imagick returns certain pixel differences between imagesphp imagick gets the object compression typephp imagick gets the depth for a particular image channelphp imagick gets the image depthphp imagick returns the image length in bytesphp imagick returns all image sequences as a blobphp imagick returns the page geometryphp imagick checks if the object has more imagesphp imagick applies a digital filterphp imagick 创建一张图片php imagick removes repeated portions of images to optimizephp imagick returns the configured fontsphp imagick resample image to desired resolutionphp imagick sets the object s default compression typephp imagick sets the depth of a particular image channel
关注编程学问公众号
编程学问网 湘ICP备20001732号