From: jakmania at libertysurf dot fr Operating system: All PHP version: 4.3.2 PHP Bug Type: GD related Bug description: IMG_COLOR_TILED and imagefill not working with all images
Description: ------------ If you "imagesettile" on an image created through "imagecreate" then use "imagefill" and "IMG_COLOR_TILED" as color as explained in the documentation, it's fine. But if the basic image is not created on the fly, eg. it is imported through "imagecreatefromXXX" then your "tile image" won't be apply on that image :-) NB: any version of GD, even the bundled one. See an example of NOT working code below. Thanx Reproduce code: --------------- <?php header ("Content-type: image/png"); $im = imagecreatefrompng("basic.png"); /* 200 x 200 */ $im = imagecreatefrompng("tile.png"); /* 10 x 10 */ imagesettile($im, $tily); imagefill($im,110,90,IMG_COLOR_TILED); imagepng($im); imagedestroy($im); ?> Expected result: ---------------- basic.png (a map in fact) tiled on a delimited area (a country). Actual result: -------------- Just the basic image (basic.png), not tiled at all. -- Edit bug report at http://bugs.php.net/?id=24594&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24594&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24594&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24594&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24594&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24594&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24594&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24594&r=support Expected behavior: http://bugs.php.net/fix.php?id=24594&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24594&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24594&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24594&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24594&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24594&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24594&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24594&r=gnused