in reply to gif colour changes
Yes, you can.
(Read the fine documentation: GD. Look at: $image->colorDeallocate(colorIndex) and $image->colorAllocateAlpha(reg,green,blue,alpha) and related friends.
-Colin.
WHITEPAGES.COM | INC