PPaint (a.k.a. Cloanto PersonalPaint) already has a macro for saving GIF anims. Just click on the crown button (the crown is the symbol for ARexx) and check the list of available macros. Make sure you have the GIF I/O library installed. AFAIK it's not available on Aminet but only on Cloanto's homepage.
Bye,
Thomas