making gif from images using imageio in python
in case anyone needs it,
for python 3.6.8, it needed fps
imageio.mimsave('/path/file.gif',images,fps=55)
This works for me:
import os
import imageio
png_dir = '../animation/png'
images = []
for file_name in sorted(os.listdir(png_dir)):
if file_name.endswith('.png'):
file_path = os.path.join(png_dir, file_name)
images.append(imageio.imread(file_path))
imageio.mimsave('../animation/gif/movie.gif', images)