Imanee has various convenient methods to generate animated gifs. Notice that the animated gif features are currently only supported when you are using the ImagickResource - you need the Imagick extension for that.

The basic method for animating gifs is the animate method. You should add frames to the Imanee object using the addFrame method before using animate.
The method addFrame accepts either Imanee objects or strings representing a path to an image.