Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 70843
Status: stalled
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: Ulrich.Weiss [...] gmx.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: GD 2.46: filledRectangle does not fill
Date: Fri, 9 Sep 2011 14:10:48 +0200
To: bug-GD [...] rt.cpan.org
From: Ulrich Weiss <Ulrich.Weiss [...] gmx.at>
Hello! I have discovered an interessting behaviour on GD 2.46: filledRectangle(...) is only working correctly at first call. After first call, filledRectangle does nothing. However, this behaviour can not be reproduced on GD 2.44. In the meantime, i have discovered a workaround: instead of filledRectangle, filledPolygon works correctly also with GD 2.46. Environment: RHEL 5.3 Installed GD-2.46 (from CPAN) Another environment, I have GD 2.44, where filledRectangle does correct work: Fedora 14 yum install perl-GD (perl-GD-2.44-4.fc14.i686) Some information about the application: my $im = new GD::Image(1188,300); my $black = $im->colorAllocate(0,0,0); my $white = $im->colorAllocate(255,255,255); $im->filledRectangle(0,0,1188,300,$white); # Clear Picture (works always) $im->filledRectangle(20,20,100,100,$black); # Does not work on GD 2.46 (works on GD 2.44) print $im->png(); best greetings! Ulrich Weiss
On Fri Sep 09 08:11:06 2011, Ulrich.Weiss@gmx.at wrote: Show quoted text
> I have discovered an interessting behaviour on GD 2.46: > filledRectangle(...) is only working correctly at first call. > After first call, filledRectangle does nothing. > However, this behaviour can not be reproduced on GD 2.44. > > In the meantime, i have discovered a workaround: instead of > filledRectangle, > filledPolygon works correctly also with GD 2.46. > > Environment: > RHEL 5.3 > Installed GD-2.46 (from CPAN) > > Another environment, I have GD 2.44, where filledRectangle does > correct > work: > Fedora 14 > yum install perl-GD (perl-GD-2.44-4.fc14.i686) > > Some information about the application: > my $im = new GD::Image(1188,300); > my $black = $im->colorAllocate(0,0,0); > my $white = $im->colorAllocate(255,255,255); > $im->filledRectangle(0,0,1188,300,$white); # Clear Picture (works > always) > $im->filledRectangle(20,20,100,100,$black); # Does not work on GD > 2.46 (works > on GD 2.44) > > print $im->png();
Can you try again with latest GD? Works fine for me with 2.59 -- Reini Urban