Skip to content
Permalink
master
Switch branches/tags
Go to file
Latest commit 10874e3 Aug 4, 2016 History
1 contributor

Users who have contributed to this file

14 lines (11 sloc) 362 Bytes
from PIL import Image
import glob
for name in glob.glob('*.tif'):
im = Image.open(name)
name = str(name).rstrip(".tif")
im.save(name + '.jpg', 'JPEG')
for name in glob.glob('*.tiff'):
im = Image.open(name)
name = str(name).rstrip(".tiff")
im.save(name + '.jpg', 'JPEG')
print "Conversion from tif/tiff to jpg completed!"