Is there a way to upload animated GIFs?

See all posts Reply

Is there a way to upload animated GIFs? new!
by Harald, 15 years, 8 months ago
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?

Thank you for help!Reply
Re: Is there a way to upload animated GIF's? new!
by Harald, 15 years, 8 months ago
ok... just found out that the site - search is useful in forum too ;)

so - it´s not possible. only missing question: is there a way to check animation?Reply
Re: Is there a way to upload animated GIF's? new!
by colin, 15 years, 8 months ago
Yes, the search works in the forum too.

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.Reply
Re: Is there a way to upload animated GIFs? new!
by Harald, 15 years, 8 months ago
Hello!

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!Reply
Re: Is there a way to upload animated GIFs? new!
by Sage, 15 years, 5 months ago
could you share with us your solution?Reply
Re: Is there a way to upload animated GIFs? new!
by colin, 15 years, 5 months ago
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