php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34980 imageconvolution ignoring div and offset
Submitted: 2005-10-25 20:47 UTC Modified: 2005-10-26 01:01 UTC
From: jaanus at underwerks dot com Assigned: pajoye (profile)
Status: Closed Package: GD related
PHP Version: 5.1.0RC3 OS: Linux 2.6.13
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jaanus at underwerks dot com
New email:
PHP Version: OS:

 

 [2005-10-25 20:47 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-25 20:54 UTC] tony2001@php.net
Assigned to the maintainer.
 [2005-10-26 01:01 UTC] pajoye@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 16:01:33 2025 UTC