ok, it seems the normal behaviour (but IMHO also an ugly, inexplicable limitation); you can read it on http://www.boutell.com/gd/#gdImageColorAllocate "In the event that all gdMaxColors colors (256) have already been allocated, gdImageColorAllocate will return -1 to indicate failure" (I didn't test the return code of gdImageColorAllocate() and so it's my fault) Giuse /--------------------------------\ | http://boltthrower.webhop.org/ | \--------------------------------/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]