How to create gif file using python

Views
207
Posted
11 months, 2 weeks ago
1 reaction



Description:

In this video, i have discussed about the gif file creattion using python,

Below is the script,

import imageio
import os

files = os.listdir('images')

image_path = [os.path.join('images',file) for file in files]

images = []
for img in image_path:
    images.append(imageio.imread(img))

imageio.mimwrite('output/myfirstgif.gif', images, fps=5)


No Comments