#34980 [Opn->Asn]: imageconvolution ignoring div and offset

From: Date: Tue, 25 Oct 2005 18:54:02 +0000
Subject: #34980 [Opn->Asn]: imageconvolution ignoring div and offset
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87030@lists.php.net to get a copy of this message
ID: 34980 Updated by: tony2001@php.net Reported By: jaanus at underwerks dot com -Status: Open +Status: Assigned Bug Type: GD related Operating System: Linux 2.6.13 PHP Version: 5.1.0RC3 -Assigned To: +Assigned To: pajoye New Comment: Assigned to the maintainer. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#87030) next »