Создание GIF -файлов через Python

import imageio
nr_images = 1000
with imageio.get_writer("Filepath", mode='I',fps = 50) as writer:
    for i in range(0,nr_images,1):
        image = imageio.imread("Filepath\Pic%.0f.jpg" % i)
        writer.append_data(image)
HotFlow