Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 43.86 KB | None | 0 0
  1. '__main__':
  2.     path = Path(f"{Path(__file__).parent.absolute()}")
  3.     images = path.glob("*.png")
  4.     frames = []
  5.  
  6.     for image in images:
  7.         img_file = get_processed_image(image)
  8.         frames.append(img_file)
  9.  
  10.     frames[0].save("timelapse.gif", save_all=True, append_images=frames[1:], optimize=False, duration=300, loop=0)
  11.     frames[-1].save("final_map.png")
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement