articles code

Convert video to animated GIF

Something I’m doing more often is converting videos of developing embryos or marine invertebrates to animated GIFs.

But how can you do this conversion without affecting the quality of the video?

A jellyfish moving its tentacles. Source: Cifonauta.

Some time ago I found this guide to convert videos to high-quality animated GIFs using the tool FFmpeg.

The trick is to generate a color palette based on the original video to improve the color quality of the GIF.

Based on this guide I created a small bash script to make my life easier and perhaps yours too ;)

Check it at

Reply by Email


Leave a Comment

Your email address will not be published. Required fields are marked *