Skip to content

Instantly share code, notes, and snippets.

@abhishekmamdapure
Created June 11, 2020 11:43
Show Gist options
  • Save abhishekmamdapure/1dbf9339d2beb4c7b2ae78eac128d23d to your computer and use it in GitHub Desktop.
Save abhishekmamdapure/1dbf9339d2beb4c7b2ae78eac128d23d to your computer and use it in GitHub Desktop.
import PIL
image_frames = [] # creating a empty list to be appended later on
days = np.arange(1,365)
for k in days:
new_fram = PIL.Image.open(r'path\where\images\are\downloaded' + '\\' + str(k) + '.jpg')
image_frames.append(new_fram)
image_frames[0].save('tave_timelapse.gif',format='GIF',
append_images = image_frames[1: ],
save_all = True, duration = 100,
loop = 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment