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
| """Convert all PNG files in a folder passed to this program into a single GIF file, sorted by filename.""" | |
| from PIL import Image | |
| import os | |
| import sys | |
| if len(sys.argv) < 2: | |
| print("Usage: python png_to_gif.py <folder>") | |
| sys.exit(1) |