Is there a built-in function in php to 开发者_Go百科add some extra sharpness on images? Like Photoshops unsharp mask?
Yes, the easiest way is to use the phpThumb library. Here is a demo of the sharpen feature:
http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php#x14
You can apparently also use imageconvolution()
in the GD library (phpThumb uses either GD or ImageMagick, whichever is available):
http://www.php.net/manual/en/function.imageconvolution.php
精彩评论