WARNING: 3.2 will now need imagemagick for resizing animated gifs
Currently php GD lib does not support resizing all frames inside an animated gif, it just uses the first one.
This now adds a basic check to see if the file is animated, if it is then it switches to use imagemagick