Open In App

PHP | Imagick adaptiveSharpenImage() Function

The Imagick::adaptiveSharpenImage() function is an inbuilt function in PHP which provides an adaptive sharpen image feature to the image. The intensity of an adaptive sharpen image depends on dramatically decreased at the edge of the image. Syntax:

bool Imagick::adaptiveSharpenImage ( $radius, $sigma, $channel )

Parameters: This function accepts three parameters as mentioned above and described below:



Return Value: This function returns TRUE on success. Below programs illustrate the Imagick::adaptiveSharpenImage() function in PHP: Original Image: Program: 




<?php
 
// require_once('path/to/vendor/autoload.php');
 
header('Content-type: image/png');
 
$image = new Imagick(
 
$image->adaptiveSharpenImage(19, 8);
echo $image;
?>

Output: Reference: http://php.net/manual/en/imagick.adaptivesharpenimage.php



Article Tags :