I'm using the Imagine PHP library to upload and render images and when I'm going to upload images of the .GIF type it does this normally keeping the dimensions of the original image but it does the size compression of it, so the .GIF image loses its 'animation' making it look like a normal image. I've reviewed documentation of them but I did not get anything that could to help. At the time of saving the image I tried to pass some parameters listed in the documentation, but I did not succeed:
$image->save('cats.gif', Array('quality' => 100, 'animated' => TRUE, 'flatten' => FALSE));