Sybio Sybio - 3 years ago 174
PHP Question

How to extract frames of an animated GIF with PHP

I search for a long time how to extract frames from an animated GIF with PHP... unfortunaly I just found how to get their duration...

I really need to extract the GIF frames and their duration to apply some resize, rotate, etc, on each and then to regenerate the GIF with edited frames !

I don't want to use any software, external library (like ImageMagick), just PHP: in fact I need to allow my class to work with animated GIF.

If you have any idea, I'm listening you ^^ !

Answer Source

I spent my day creating a class based on this one to achieve what I wanted using only PHP!

You can find it here:

Thanks for your answers!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download