From:             mike at agftech dot com
Operating system: Fedora 3
PHP version:      5.1.2
PHP Bug Type:     GD related
Bug description:  imagefill doesn't work on imagecreatetruecolor images

Description:
------------
imagefill() does not work on images created with the function
imagecreatetruecolor().  Any attempt to use imagefill() returns the
standard black image.

Note:  I am using the GD version that is bundled with PHP 5.1.2

Reproduce code:
---------------
$print = imagecreatetruecolor(300, 500);
$image = imagecreatetruecolor(555, 555);
$color = imagecolorallocate($image, 255, 255, 0);

imagefill($image, 0, 0, $color);

imagecopy($image, $print, 50, 50, 0, 0, 300, 500);

header("Content-type: image/jpg");
imagejpeg($image);
imagedestroy($image);

Expected result:
----------------
A 555x555 yellow square with a 300x500 black square offset 50x50 inside.

Actual result:
--------------
555x555 black square.

-- 
Edit bug report at http://bugs.php.net/?id=36683&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36683&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36683&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36683&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36683&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36683&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36683&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36683&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36683&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36683&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36683&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36683&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36683&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36683&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36683&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36683&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36683&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36683&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36683&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36683&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36683&r=mysqlcfg

Reply via email to