Last active
September 12, 2015 18:19
-
-
Save diegoponciano/8a690f54aea678886451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys, os | |
import imageio | |
filename = sys.argv[1] | |
reader = imageio.get_reader(filename) | |
duration = reader.get_meta_data()['ANIMATION']['FrameTime'] | |
frames = [frame for frame in reader] | |
frames.reverse() | |
imageio.mimsave('reverse_{}'.format(filename), frames, duration=duration/1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment