Thanks to visit codestin.com
Credit goes to omz-software.com

images2gifΒΆ

Provides functionality for reading and writing animated GIF images.

Use writeGif() to write a series of numpy arrays or PIL images as an animated GIF. Use readGif() to read an animated gif as a series of numpy arrays.