A Code Monkey's Blog

Cautious about colorExact() and colorAllocate() in Perl GD package

For exising colors, I think it is better to use colorExact() because the color indices would be consistent among images. For new colors, colorAllocate() is the only choice. But colorAllocate() is highly recommended to use after colorExact(). It is safer to the color palette.