在线文档教程
PHP
Image/ImageMagick

Imagick::setImageCompression

Imagick::setImageCompression

(PECL imagick 2.0.0)

Imagick::setImageCompression — Sets the image compression

Description

bool Imagick::setImageCompression ( int $compression )

Parameters

compression

One of the COMPRESSION constants

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws ImagickException on error.

← Imagick::setImageCompose

Imagick::setImageCompressionQuality →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/imagick.setimagecompression.php