编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 gd 和图像处理 函数 由文件或 url 创建一个新图象。php imagick 创建缩略图php imagick gets the gravityphp imagick gets channel rangephp imagick gets the image gammaphp imagick returns the page geometryphp imagick gets the potential image typephp imagick returns the imagick quantum rangephp imagick descriptionphp imagick 创建一张图片php imagick quickly fetch attributesphp imagick 从二进制字符串里读取图片php imagick descriptionphp imagick sets the gravityphp imagick 设置图片压缩的质量php imagick sets the image opacity levelphp imagick sets the imagick iterator to the last imagephp imagick shaves pixels from the image edgesphp imagick changes the value of individual pixels based on a thresholdphp imagick 把图片写入指定的文件
关注编程学问公众号
编程学问网 湘ICP备20001732号