How to create gif file using python

Views
457
Posted
2 years, 9 months 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