How to reverse an animated GIF

Posted on

Editing visual media via code has always been a fascination of mine. Probably because I’m not a designer and I tend to stick to what I do well. A visual effect I love is seeing reverse video – it provides a sometimes hilarious perspective on any given event.

Take this reverse water effect for example:

To reverse an animated GIF or video, you can use the ImageMagick library:

convert water-forward.gif -coalesce -reverse -quiet -layers OptimizePlus  -loop 0 water-reversed.gif

If you’re interested in media engineering, check out my previous ImageMagick tutorials. These awesome media libraries are as close to an artist as I will ever get!

  • Facebook Open Graph meta tags

    Facebook Open Graph meta tags

    It’s no secret that Facebook has become a major traffic engine for all types of websites. These days, even big companies direct consumers to their Facebook pages instead of corporate websites directly. And of course, there are Facebook “Like” and “Recommend” widgets on every website. A…

  • Be a developer dad

    Be a developer dad

    I get asked tons of questions every day, but I’m still surprised that they’re rarely questions about code or even technology – most of the questions I get are more about non-dev stuff, like what my desktop looks like, what software I use, and often…

Leave a Reply

Your email address will not be published.