diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py index 18e8403d1..0e1b20596 100644 --- a/src/PIL/IcnsImagePlugin.py +++ b/src/PIL/IcnsImagePlugin.py @@ -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":