Edit report at http://bugs.php.net/bug.php?id=51671&edit=1
ID: 51671 Updated by: [email protected] Reported by: a dot schilder at gmx dot de Summary: imagefill does not work correctly for small images -Status: Assigned +Status: Closed Type: Bug Package: GD related Operating System: Windows XP SP3 PHP Version: 5.3.2 Assigned To: pajoye 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/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-04-28 10:23:46] [email protected] Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=298693 Log: - Fix #51671, imagefill does not work correctly for small images ------------------------------------------------------------------------ [2010-04-27 20:40:44] [email protected] I removed the note in the doc. ------------------------------------------------------------------------ [2010-04-27 19:57:06] a dot schilder at gmx dot de I think you mean the doc of another function? The doc for "imagecreatetruecolor" says "This function will not work with GIF file formats." in the notes section (see: http://php.net/manual/en/function.imagecreatetruecolor.php). The note in the docs should be unrelated to this bug, because IMHO it doesn't make sense - but as I also mentioned, the problem disappeared after replacing "imagecreatetruecolor" with "imagecreate", so there seems to be a relation to the used function. ------------------------------------------------------------------------ [2010-04-27 13:14:19] [email protected] Which part of the doc says that you can't create gif from true color images? As far as I remember the doc is about which buffer format is created when a script load a GIF image. imagecreatefromgif always returns a palette image. Also this question is unrelated to this problem. ------------------------------------------------------------------------ [2010-04-27 13:11:59] a dot schilder at gmx dot de I also tested it with imagecreate() instead of imagecreatetruecolor() and then it worked. Although it's said in the docs that imagecreatetruecolor() does not work with gif images, that's not true - it works in all cases, except in this example (see also bug #51414 for this doc problem). The code is taken from a class that creates an image and outputs it in different formats - so imagecreatetruecolor() has to be used, because the output format is not known on image creation. ------------------------------------------------------------------------ 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/bug.php?id=51671 -- Edit this bug report at http://bugs.php.net/bug.php?id=51671&edit=1
