Skip Menu |

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 5569
Status: resolved
Priority: 0/
Queue: GD

People
Owner: LDS [...] cpan.org
Requestors: da [...] coder.com
Cc:
AdminCc:

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



Subject: doc clarification: colorsTotal and truecolor images
I was looking through gdlib documentation related to the colorsTotal call and it says: "For truecolor images, the result of this call is undefined and should not be used." (http://www.boutell.com/gd/manual2.0.22.html#gdImageColorsTotal) I think this clarification is new as of gdlib 2.0. Lines 422-425 of the GD perldocs say: Show quoted text
> $colorsTotal = $image->colorsTotal object method > This returns the total number of colors allocated in the object. > > $maxColors = $myImage->colorsTotal;
This probably should be appended with "For truecolor images, the result is always -1" since you cannot retrieve the total number of colors in a truecolor image.
This documentation bug was fixed a while ago, and I'm just closing down the bug ticket now. Lincoln [DALLEN - Fri Mar 5 09:06:54 2004]: Show quoted text
> I was looking through gdlib documentation related to the colorsTotal > call and it says: "For truecolor images, the result of this call is > undefined and should not be used." > (http://www.boutell.com/gd/manual2.0.22.html#gdImageColorsTotal) > I think this clarification is new as of gdlib 2.0. > > Lines 422-425 of the GD perldocs say: >
> > $colorsTotal = $image->colorsTotal object method > > This returns the total number of colors allocated in the
> object.
> > > > $maxColors = $myImage->colorsTotal;
> > This probably should be appended with "For truecolor images, the > result is > always -1" since you cannot retrieve the total number of colors in a > truecolor image. > >