Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 46260
Status: rejected
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: ahernit [...] cpan.org
Cc:
AdminCc:

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



Subject: rgb returns 424 for black
I have png images like the appended. And on one machine which uses gentoo, it detects the black space on the png (appending on this post) with my $colors = $gdimaged->getPixel($x,$y); my ($r,$g,$b) = $gdimaged->rgb($colors); as rgb: 4 2 4. I can not explain it. On my working environment (Ubuntu 7.10, and GD 1.41), its 000. Photoshop tells me also it is 000. I think the version is 2.27 on the gentoo machine.
Subject: difference.png
Download difference.png
image/png 1.6k
difference.png
On Wed May 20 18:28:48 2009, AHERNIT wrote: Show quoted text
> I have png images like the appended. And on one machine which uses > gentoo, it detects the black space on the png (appending on this post) with > > my $colors = $gdimaged->getPixel($x,$y); > my ($r,$g,$b) = $gdimaged->rgb($colors); > > as rgb: 4 2 4. I can not explain it. On my working environment (Ubuntu > 7.10, and GD 1.41), its 000. Photoshop tells me also it is 000. > > I think the version is 2.27 on the gentoo machine.
It's the almost black color, the real black is the last, 11. This are the rgb values of all defined colors: $ perl -MGD -e'$im = GD::Image->newFromPng("difference.png"); print "\n$_: ", join " ",$im->rgb($_) for 0..$im->colorsTotal' 0: 4 2 4 1: 140 138 140 2: 100 102 100 3: 204 206 204 4: 36 34 36 5: 236 238 236 6: 20 18 20 7: 188 186 188 8: 116 118 116 9: 220 222 220 10: 52 50 52 11: 0 0 0 -- Reini Urban