#34980 [NEW]: imageconvolution ignoring div and offset
| From: | jaanus at underwerks dot com | Date: | Tue, 25 Oct 2005 18:47:14 +0000 |
| Subject: | #34980 [NEW]: imageconvolution ignoring div and offset | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-87029@lists.php.net to get a copy of this message | ||
From: jaanus at underwerks dot com
Operating system: Linux 2.6.13
PHP version: 5.1.0RC3
PHP Bug Type: GD related
Bug description: imageconvolution ignoring div and offset
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 bug report at http://bugs.php.net/?id=34980&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34980&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34980&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34980&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34980&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34980&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34980&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34980&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34980&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34980&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34980&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34980&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34980&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34980&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34980&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34980&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34980&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34980&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34980&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34980&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34980&r=mysqlcfg