class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Ok, I did not find a search funktion on this forum... hope this topic has not been discussed yet.
Is there a way to upload & resize animated GIFs? I think no - otherwise I would have found it in the docs ;)
But another question: How do I check if a GIF is animated or not? I would like to do no resizing if it´s a animated GIF - and just upload it as File! Possible?
So the class cannot do graphic processing on animated GIFs. As for detecting animation, I don't think that the class can do it as of now. Animated and non animated GIFs have the same MIME type (image/gif).
Structurally speaking, the class cannot deal with animated GIFs. I can maybe detect the animated GIFs, but the class cannot apply graphic manipulation on each layer of the animated GIF.
So for now, the class can only upload animated GIFs as regular files, or do graphic processing on the GIF image, but removing the animation.Reply
Is there a way to upload & resize animated GIFs?
I think no - otherwise I would have found it in the docs ;)
But another question: How do I check if a GIF is animated or not? I would like to do no resizing if it´s a animated GIF - and just upload it as File! Possible?
Thank you for help!
so - it´s not possible. only missing question: is there a way to check animation?
So the class cannot do graphic processing on animated GIFs. As for detecting animation, I don't think that the class can do it as of now. Animated and non animated GIFs have the same MIME type (image/gif).
Some background info here or here.
Thanks for helping!
After some time googling i found the solution for me:
http://forums.devshed.com/showpost.php?p=947103&postcount=6
when gif format is "GIF89a" it´s animated, otherwise not. so i can extend the class now and make the changes i need, thank you!
So for now, the class can only upload animated GIFs as regular files, or do graphic processing on the GIF image, but removing the animation.