Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '__main__':
- path = Path(f"{Path(__file__).parent.absolute()}")
- images = path.glob("*.png")
- frames = []
- for image in images:
- img_file = get_processed_image(image)
- frames.append(img_file)
- frames[0].save("timelapse.gif", save_all=True, append_images=frames[1:], optimize=False, duration=300, loop=0)
- frames[-1].save("final_map.png")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement