array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.enhanceimage.php', 1 => 'Imagick::enhanceImage', 2 => 'Improves the quality of a noisy image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.encipherimage.php', 1 => 'Imagick::encipherImage', ), 'next' => array ( 0 => 'imagick.equalizeimage.php', 1 => 'Imagick::equalizeImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/enhanceimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL imagick 2, PECL imagick 3)
Imagick::enhanceImage — Improves the quality of a noisy image
Applies a digital filter that improves the quality of a noisy image.
此函数没有参数。
成功时返回 true
。
错误时抛出 ImagickException。
示例 #1 Imagick::enhanceImage()
<?php
function enhanceImage($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->enhanceImage();
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>