-
-
Save ff6347/5381900 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Goes a little something like this: | |
| import os | |
| files = [ f for f in os.listdir('.') if os.path.isfile(os.path.join('.',f)) and f.endswith('.jpg') ] | |
| for i, file in enumerate(sorted(files)): | |
| os.rename(file, 'image%03d.jpg' % i) | |
| # Now with them renamed you can do something like: | |
| # convert image%03d.jpg[0-293] animated_gif.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment