Simplified Image.open call

This commit is contained in:
Andrew Murray 2018-01-06 21:40:12 +11:00
parent 0ac6d6ad52
commit 59b9d1dc46

View File

@ -359,7 +359,7 @@ if __name__ == '__main__':
imf.load() imf.load()
im = imf.im im = imf.im
im.save('out-%s-%s-%s.png' % size) im.save('out-%s-%s-%s.png' % size)
im = Image.open(open(sys.argv[1], "rb")) im = Image.open(sys.argv[1])
im.save("out.png") im.save("out.png")
if sys.platform == 'windows': if sys.platform == 'windows':
os.startfile("out.png") os.startfile("out.png")