#30483 [Fbk-Opn]: imagefill() not working on images larger than 181x181
ID: 30483 User updated by: bjoneson at mchsi dot com Reported By: bjoneson at mchsi dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: Fedora Core 2 PHP Version: 5.0.2 New Comment: It's the stock RPM that comes with the Fedora 2 distribution libpng-devel-1.2.2-22.i386.rpm Previous Comments: [2004-10-23 10:36:44] [EMAIL PROTECTED] What's your version of libpng ? Reproduce code works fine for me with any images. [2004-10-19 23:09:44] bjoneson at mchsi dot com OK... though it was no short order, I re-compiled php and pointed --with-gd at the new installation using the following config: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl --with-gd=/usr/local --with-zlib-dir=/usr/include --with-freetype-dir=/usr/local When I do this, the problem goes away. This leads me to believe that the problem is most likely with the bundled version of gd in php5. If there is any other information I can provide, please let me know. [2004-10-19 21:39:09] bjoneson at mchsi dot com Things are only getting weirder... I downloaded, compiled, and installed the newest version of gd. I then recompiled php using the same config line (didn't point --with-gd at anything). Now imagefill() seems to work at 182x182 and below but not above. (I gained one pixel). I'm perplexed. [2004-10-19 20:23:58] bjoneson at mchsi dot com ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl --with-gd --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/lib [2004-10-19 18:37:17] [EMAIL PROTECTED] What is your configure line? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30483 -- Edit this bug report at http://bugs.php.net/?id=30483edit=1
#30483 [Fbk-Opn]: imagefill() not working on images larger than 181x181
ID: 30483 User updated by: bjoneson at mchsi dot com Reported By: bjoneson at mchsi dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: Fedora Core 2 PHP Version: 5.0.2 New Comment: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl --with-gd --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/lib Previous Comments: [2004-10-19 18:37:17] [EMAIL PROTECTED] What is your configure line? [2004-10-19 18:11:53] bjoneson at mchsi dot com Description: When I utilize imagecreatetruecolor to create an image larger than 181x181 pixels, the imagefill() has no effect (I'm left with an all black image). Anything smaller than 182x182 and it works just fine. Reproduce code: --- $img_big = imagecreatetruecolor(182, 182); $brown=imagecolorallocate($img_big, 0xFF, 0xEF, 0xD8); imagefill($img_big, 0, 0, $brown); imagepng($img_big, /usr/local/apache2/htdocs/cart/images/99-1-big.png); Expected result: I would expect to see a 182x182 png filled with a tanish color (#FFEFD8) located in the file 99-1-big.png Actual result: -- I get a 182x182 png filled with black. -- Edit this bug report at http://bugs.php.net/?id=30483edit=1