From 1d63703c543cc18481ac1e4d7774a45378e22a29 Mon Sep 17 00:00:00 2001 From: pirate486743186 Date: Mon, 4 Mar 2019 15:05:14 +0100 Subject: [PATCH] removing dib extension --- src/PIL/BmpImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/BmpImagePlugin.py b/src/PIL/BmpImagePlugin.py index 5b655d757..f261bf6ef 100644 --- a/src/PIL/BmpImagePlugin.py +++ b/src/PIL/BmpImagePlugin.py @@ -349,6 +349,6 @@ def _save(im, fp, filename): Image.register_open(BmpImageFile.format, BmpImageFile, _accept) Image.register_save(BmpImageFile.format, _save) -Image.register_extensions(BmpImageFile.format, [".bmp", ".dib"]) +Image.register_extension(BmpImageFile.format, ".bmp") Image.register_mime(BmpImageFile.format, "image/bmp")