编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 bcompiler 函数 从一个文件句柄中读取并创建类php gd 和图像处理 函数 由文件或 url 创建一个新图象。php stream 函数 创建资源流上下文php 范例 使用 php 创建 png 图像php imagick annotates an image with textphp imagick 创建缩略图php imagick adds a label to an imagephp imagick simulates motion blurphp imagick 创建一张图片php imagick simulates a polaroid picturephp imagick descriptionphp imagick scales an image with pixel samplingphp imagick sets image alpha channelphp imagick sets the image depthphp imagick sets the page geometry of the imagephp imagick sets the page geometry of the imagick objectphp imagick adjusts the contrast of an imagephp imagick applies a color vector to each pixel in the imagephp imagick writes an image or image sequencephp mongoid 创建一个假的 mongoid
关注编程学问公众号
编程学问网 湘ICP备20001732号