PHP GD sharpness filter

前端 未结 3 1877
半阙折子戏
半阙折子戏 2021-01-22 05:25

How can you make a sharpness filter with the PHP GD library?

So that this...

3条回答
  •  渐次进展
    2021-01-22 05:53

    If the ImageMagick is installed in your PHP config, you can use Imagick::adaptiveSharpenImage

    From the manual:

    adaptiveSharpenImage(2,1);
    } catch(ImagickException $e) {
        echo 'Error: ' , $e->getMessage();
        die();
    }
    header('Content-type: image/png');
    echo $image;
    ?>
    

    http://php.net/manual/en/function.imagick-adaptivesharpenimage.php

提交回复
热议问题