radius | float | The radius of the Gaussian, in pixels, not counting the center pixel. Use 0 for auto-select. |
sigma | float | The standard deviation of the Gaussian, in pixels. |
channel | int | Imagick channel constant; |
function adaptiveSharpenImage($imagePath, $radius, $sigma, $channel) { $imagick = new \Imagick(realpath($imagePath)); $imagick->adaptiveSharpenImage($radius, $sigma, $channel); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); }