I already wrote a PHP script that allows users to upload images but I want to be able to allow my users to upload animated images. What do I need to add to my current code to allow animated images using PHP? A quick code example would help me out a lot.
Share
Nothing. Animated images are images all the same.
EDIT: If you are resizing your images using GD, you’ll lose the animation, since GD can’t handle it correctly.
If you have the ImageMagick plugin installed, you should use it instead of GD:
See also: Resize animated gif file without destroying animation