Search code examples
pythonimagemagickpython-imaging-libraryanimated-gifpythonmagick

Python, process animated gif preserving animation parameters


Is that possible to process (expand, add background and some text "below" the original image) animated gif in Python? I believe I should process each frame separately (which is a bit of performance issue, but still better than nothing) yet I can't find any working code at all.

PIL's support for animated gifs seems to be very limited

PythonMagick - well, maybe it supports but no docs at all

Wand - doesn't seem to support iterating through frames...

Any suggestions?


Solution

  • Update (2013-06-18): Wand 0.3 now provides sequence feature that you need.

    There’s a patch to fix it for Wand. This will be eventually merged to upstream, but you can currently use this branch.