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 python | |
""" | |
This script converts all *.jp2 files in a directory (IMAGE_PATH) to *.jpg files. | |
It uses IrfanView's command line tools. Specify IRFANVIEW_PATH to make it work. | |
""" | |
import logging | |
import os | |
import subprocess | |
IRFANVIEW_PATH = os.path.join('C:', r'\Program Files', 'IrfanView', 'i_view64.exe') |
NewerOlder