I am trying to use both ImageIo and PIL to save a sequence of my images as GIF. The images do get saved in a .gif file. But, they are getting saved as a sequence of images and not as a "video" GIF.
gif_images[0].save('path/test.gif', save_all=True, append_images=gif_images[1:], optimize=False, duration=40, loop=0) #using PIL
imageio.mimsave('path/test.gif', gif_images, format = 'GIF', fps=10) #using imageio
gif_images is a list of <class 'PIL.JpegImagePlugin.JpegImageFile'> image files.
I have tried varying fps rates, durations but nothing seems to work.