diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py index 9f98cd3d7..ee1400d67 100644 --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -882,7 +882,6 @@ def _save(im, fp, filename, chunk=putchunk): b"\x01", ) - info = im.encoderinfo.get("pnginfo") if info: chunks = [b"bKGD", b"hIST"] for cid, data in info.chunks: