ID: 34980
Updated by: [EMAIL PROTECTED]
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