1from PIL import Image
2import sys
3def gipit(pname):
4 with Image.open(pname) as im:
5 im.save(pname+'.jpeg', 'jpeg', progressive=True, optimize=True)
6if __name__ == '__main__':
7 _, pname = sys.argv
8 gipit(pname)
comments powered by Disqus