From:             sprice at wisc dot edu
Operating system: Mac 10.3
PHP version:      4.3.3
PHP Bug Type:     GD related
Bug description:  GD gdImageColorClosest() and gdImageColorClosestAlpha() not correct

Description:
------------
I submitted this to the maintainer of GD and he said 
that there is a patch for this coming in GD 2.16. It is 
a somewhat obvious bug, so I won't waste time coding up 
examples (if you still want examples, say so...).

In gd.c (ext/gd/libgd/gd.c) line 258 says "ad = im-
>blue[i] - a;" but it should say "ad = im->alpha[i] - 
a;".


-- 
Edit bug report at http://bugs.php.net/?id=26097&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26097&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26097&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26097&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26097&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26097&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26097&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26097&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26097&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26097&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26097&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26097&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26097&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26097&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26097&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26097&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26097&r=float

Reply via email to