Im trying to make a gif but the order in which the images are displayed are not right. The images are save with the next format: 'IMG_1', and this is the code
def make_gif(frame_folder):
frames = glob.glob(f"{frame_folder}/*.png")
fps = 5
clip = mpy.ImageSequenceClip(frames, fps=fps)
clip.write_gif('movie.gif')
I sorted my list but displayed the same thingframes = sorted(glob.glob(f"{frame_folder}/*.png"))
And when I print the glob.glob it shows that the first image in the array it's the 'IMG_1' but then the second one it's the 'IMG_11'. And Im trying to put it in order, first the 'IMG_1' and then the 'IMG_2'