ID: 34980 Updated by: [EMAIL PROTECTED] Reported By: jaanus at underwerks dot com -Status: Assigned +Status: Closed Bug Type: GD related Operating System: Linux 2.6.13 PHP Version: 5.1.0RC3 Assigned To: pajoye New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Thanks for the notice :) Fixed in 5.1-cvs, you can test it again with the next snapshots. Previous Comments: ------------------------------------------------------------------------ [2005-10-25 20:54:01] [EMAIL PROTECTED] Assigned to the maintainer. ------------------------------------------------------------------------ [2005-10-25 20:47:12] jaanus at underwerks dot com 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34980&edit=1
