How to create Boomerang style GIF from existing GIF using ImageMagick

Have you ever shot a set of burst images that you want to convert it to Boomerang style? Playing forward and backward indefinitely? All you need is one line command, so long as you have ImageMagick installed.

If you already have a GIF, for example from Google Photos, you can run this:

For a set of burst photos, you can run this:

Tested on Ubuntu 16.04.1 using ImageMagick 6.8.9-9 Q16 x86_64.

Sunset over waves on Baltic Sea coast, near Palanga Pier, Lithuania. Sep 2015.
Sunset over waves on Baltic Sea coast, near Palanga Pier, Lithuania. @yuan3y Sep 2015.

You can upload it to your favourite GIF hosting service like GIPHY, or your own site, from there you can share it to social media like Facebook.

Bonus:

If you’d like to upload to Instagram, you can create a mp4. You can add in additional audio as well.

Leave a Reply