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.