I have a folder that has plots in PNGs like earthquake0, earthquake1, earthquake2, and so on. These photos are converted to GIF via moviepy but Python's sorting results to 1, 10, 100 instead of 1, 2, 3.
Here's the moviepy code
import os
os.chdir(r'path')
from moviepy.editor import *
image_list = 'exports' # folder
my_clip = ImageSequenceClip(image_list, fps=0.75)
my_clip.write_gif('eqph_gif.gif')
I have tried adding this but Python says it can't find the folder
image_list = natsort.natsorted(image_list)