mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +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"))
|
imf = IcnsImageFile(open(sys.argv[1], "rb"))
|
||||||
for size in imf.info["sizes"]:
|
for size in imf.info["sizes"]:
|
||||||
imf.size = size
|
imf.size = size
|
||||||
imf.load()
|
imf.save("out-%s-%s-%s.png" % size)
|
||||||
im = imf.im
|
|
||||||
im.save("out-%s-%s-%s.png" % size)
|
|
||||||
im = Image.open(sys.argv[1])
|
im = Image.open(sys.argv[1])
|
||||||
im.save("out.png")
|
im.save("out.png")
|
||||||
if sys.platform == "windows":
|
if sys.platform == "windows":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user