sharpen image quality with PHP gd library

若如初见. 提交于 2019-12-03 15:59:40

You'd use imageconvolution() with a matrix that corresponds to a sharpen filter. Details in this comment on the PHP site: http://php.net/manual/en/ref.image.php#56144

You can use imageconvolution in GD with a sharpen mask. A good example is at http://adamhopkinson.co.uk/blog/2010/08/26/sharpen-an-image-using-php-and-gd/

I haven't tried it, but this looks like what you're looking for, as far as ImageMagick goes.

In GD library of php having a file with path

lib/PHPImageWorkshop/Core/ImageWorkshopLayer.php

Please go to save public function and you can change the imageQuality upto 100. make sure which type of image you want to create. Hope this will help you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!