Animated images are really popular on the web right now, especially on sites like Tumblr and Reddit. So now and then you may see something in a tv show or movie you are watching and want to create a gif from it. Using python and 'images2gif' this is very easy and this is how.

Requirements:

This isn't needed, but I am going to assume you are running on Windows.

The Plan

The plan is very simple. We are going to use FFMpeg to generate a series of screenshots from the video and then we are going resize them and stitch them together using "images2gif".

Setup the batch file to grab screenshots

FFMpeg is what we will be using to grab the screenshots and that can be called with a few command line instructions to get what we want out of it.