mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Simplified Image.open call
This commit is contained in:
parent
0ac6d6ad52
commit
59b9d1dc46
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user