Edit report at https://bugs.php.net/bug.php?id=60160&edit=1
ID: 60160 Updated by: f...@php.net Reported by: kieran at menor dot dk Summary: imagefill() doesn't work correctly for small images -Status: Analyzed +Status: Closed Type: Bug Package: GD related Operating System: Windows 7 x64, Debian 6 x64 PHP Version: 5.3.8 -Assigned To: +Assigned To: fa Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. 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/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-11-01 11:51:48] f...@php.net Automatic comment from SVN on behalf of fa Revision: http://svn.php.net/viewvc/?view=revision&revision=318638 Log: Fixed #60160 and added a test for it ------------------------------------------------------------------------ [2011-10-31 15:26:44] f...@php.net The following patch has been added/updated: Patch Name: bug60160.phpt Revision: 1320074804 URL: https://bugs.php.net/patch-display.php?bug=60160&patch=bug60160.phpt&revision=1320074804 ------------------------------------------------------------------------ [2011-10-31 15:19:15] f...@php.net Related to https://bugs.php.net/51671 - that didn't get fixed completely, as can be seen in the test for #51671. ------------------------------------------------------------------------ [2011-10-31 14:51:05] f...@php.net The following patch has been added/updated: Patch Name: fix-imagefill-for-images-smaller-than-4px-width Revision: 1320072664 URL: https://bugs.php.net/patch-display.php?bug=60160&patch=fix-imagefill-for-images-smaller-than-4px-width&revision=1320072664 ------------------------------------------------------------------------ [2011-10-28 17:39:06] kieran at menor dot dk Workaround: ------------ Use imagefilledrectangle() instead, alike so: function imagefillfix($image, $x, $y, $color) { return imagefilledrectangle($image, $x, $y, imagesx($image) - 1, imagesy($image) - 1, $color); } ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=60160 -- Edit this bug report at https://bugs.php.net/bug.php?id=60160&edit=1