mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Fixed saving bug in __main__
This commit is contained in:
parent
29fee8fc43
commit
bd7242228b
|
@ -368,9 +368,7 @@ if __name__ == "__main__":
|
|||
imf = IcnsImageFile(open(sys.argv[1], "rb"))
|
||||
for size in imf.info["sizes"]:
|
||||
imf.size = size
|
||||
imf.load()
|
||||
im = imf.im
|
||||
im.save("out-%s-%s-%s.png" % size)
|
||||
imf.save("out-%s-%s-%s.png" % size)
|
||||
im = Image.open(sys.argv[1])
|
||||
im.save("out.png")
|
||||
if sys.platform == "windows":
|
||||
|
|
Loading…
Reference in New Issue
Block a user