|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-25 20:54 UTC] tony2001@php.net
[2005-10-26 01:01 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 19:00:01 2025 UTC |
Description: ------------ imageconvolution ignores the values supplied for div and offset. Basically it works as if div=1 and offset=0. The formula for the conversion has been chacked in photoshop, and should work as intended. Reproduce code: --------------- <?PHP $img=imagecreatefromjpeg("image.jpg"); imageconvolution($img,array(array(-1,-1,-1),array(-1,16,-1),array(-1,-1,-1)), 8,0); imagejpeg($img,"test.jpg"); ?> Expected result: ---------------- Sharpened image that retains normal color etc. Actual result: -------------- Eccsessivly sharpened image, mostly white with some color in the high-contrast areas.