PHP - Manual: Gmagick::setCompressionQuality
2024-11-15
(No version information available, might only be in Git)
Gmagick::setCompressionQuality — Sets the object's default compression quality
Sets the object's default compression quality.
quality
The Gmagick object.
错误时抛出 GmagickException。
示例 #1 Gmagick::setCompressionQuality()
<?php
$gm = new Gmagick();
$gm->read("magick:rose");
$gm->setCompressionQuality(2);
?>
官方地址:https://www.php.net/manual/en/gmagick.setcompressionquality.php