ID: 24594
Updated by: [email]sniperphp.net[/email]
Reported By: jakmania at libertysurf dot fr
-Status: Verified
+Status: Assigned
Bug Type: GD related
Operating System: All
PHP Version: 4.3.3RC2-dev
-Assigned To:
+Assigned To: pajoye
New Comment:

Assigning to Pierre who already has some fix for this too.



Previous Comments:
------------------------------------------------------------------------

[2003-07-14 12:27:50] jakmania at libertysurf dot fr

Hi Pierre,
Here are two images I've got the bug with:

[url]http://www.bantu.ovh.org/images/basic.png[/url]
[url]http://www.bantu.ovh.org/images/tile.png[/url]
sometimes my host is down :(, so try later in case

And the code is:

<?php
header ("Content-type: image/png");
$im = imagecreatefrompng("basic.png"); /* 150 x 150 */
$tily = imagecreatefrompng("tile.png"); /* 10 x 10 */
imagesettile($im, $tily);
imagefill($im,100,75,IMG_COLOR_TILED);
imagepng($im);
imagedestroy($im);
?>

I just get a dotted line (y=75)
Waiting for better news. Thanks

Jack

------------------------------------------------------------------------

[2003-07-13 15:22:19] [email]pajoyephp.net[/email]

I cannot reproduce it here, using the RC or the head. Do you have a
link with the 2 used images?

thanks

pierre

------------------------------------------------------------------------

[2003-07-12 02:35:33] jakmania at libertysurf dot fr

It's a GD bug, not a PHP one, 'cause I've got the same wrong result in
perl :(((

------------------------------------------------------------------------

[2003-07-10 16:07:37] jakmania at libertysurf dot fr

Well, It should work with imagefill() just like it does with other
functions (imagefilledrectangle...) I mean, just filling with the
tile, not only drawing a 'kind' of line or just doing nothing.
Someone should check GD. If this problem doesn't occur with the C
version itself, or with a Perl interface, then it's a PHP bug,
otherwise it's a GD bug.

------------------------------------------------------------------------

[2003-07-10 12:21:31] [email]sniperphp.net[/email]

Here's my test script:

<?php
header ("Content-type: image/png");
$im = imagecreatefrompng("basic.png"); /* 200 x 200 */
$tile = imagecreatefrompng("tile.png"); /* 10 x 10 */
imagesettile($im, $tile);
// imagefilledpolygon ($im, array(0,0,200,0,200,200,0,200), 4,
IMG_COLOR_TILED); // Works
// imagefilledrectangle ($im, 10,10,190,190, IMG_COLOR_TILED); //
Works
imagefill($im,10,10,IMG_COLOR_TILED); // Does not work?
imagepng($im);
?>

But when I used imagefill(), it only draw one line in the top with the
tile and the tile image was somewhat scaled down..(I'm not sure if it's
supposed to work like this? :)

# file tile.png
tile.png: PNG image data, 10 x 10, 8-bit/color RGB, non-interlaced
# file basic.png
basic.png: PNG image data, 200 x 200, 8-bit/color RGB, non-interlaced



------------------------------------------------------------------------

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
[url]http://bugs.php.net/24594[/url]

--
Edit this bug report at [url]http://bugs.php.net/?id=24594&edit=1[/url]