I have already written PHP scripts that allow users to upload images but I want my users to upload animated images I want to be able to allow upload. What do I need to add to my existing code to allow animated images using PHP? A quick code example will help me a lot.
What do I need to do to allow animated images using PHP to mine Current code?
Nothing animated images are similar to images.
Edit: If you are changing the size of your images using GD, then you will lose the animation, because the GD can not handle it properly.
If you have the plugin installed, you should use it instead of GD:
$ thumb = new Imagick ('myimage.gif'); $ Thumb- & gt; ResizeImage (320,240, Imagick :: FILTER_LANCZOS, 1); $ Thumb- & gt; WriteImage ('mythumb.gif'); $ Thumb- & gt; Destroyed ();
See also:
Comments
Post a Comment