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
| import os, sys, subprocess | |
| try: | |
| from wand.image import Image | |
| except ImportError: | |
| os.system('python -m pip install wand') | |
| from wand.image import Image | |
| def main(args): | |
| if len(args) < 1: | |
| print('Usage: upscaler.py <input_image> [output_image]') |