编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 surrounds the image with a borderphp imagick adds a comment to your imagephp imagick 创建缩略图php imagick deciphers an imagephp imagick applies an expression to an imagephp imagick gets the colorspacephp imagick returns the image border colorphp imagick gets the image delayphp imagick gets the image iterationsphp imagick 获取图像的x y轴分辨率php imagick returns the imagemagick package namephp imagick replaces colors in the imagephp imagick changes the transparency value of a colorphp imagick 创建一张图片php imagick changes the color value of any pixel that matches targetphp imagick returns an array representing the font metricsphp imagick set colorspacephp mongodb 创建数据库引用php reflectionclass 创建一个新的类实例而不调用它的构造函数
关注编程学问公众号
编程学问网 湘ICP备20001732号