#34980 [Asn->Csd]: imageconvolution ignoring div and offset
| From: | pajoye@php.net | Date: | Tue, 25 Oct 2005 23:01:41 +0000 |
| Subject: | #34980 [Asn->Csd]: imageconvolution ignoring div and offset | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87045@lists.php.net to get a copy of this message | ||
ID: 34980
Updated by: pajoye@php.net
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] tony2001@php.net
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