Categories
articles code

Convert video to animated GIF

Something that I began doing more often is converting videos of developing embryos or marine invertebrates to animated GIFs. But how to 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 in https://github.com/nelas/gif.sh

Leave a Reply

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