imageio
Img2gif is a script that allows you to create gif using a series of files with png or jpg extensions. It is very important that the files are ordered by name.
000.png, 001.png, 002.png y 010.png
0.png, 1.png, 2.png y 11.png
You can see the complete files of the example in this link