From fe18b039ca9e11c6deed8f21a9e5eca815badbb7 Mon Sep 17 00:00:00 2001 From: Andriy Sokolovskiy Date: Tue, 16 Jun 2015 20:33:27 +0300 Subject: [PATCH] Register MIME type for BMP --- PIL/BmpImagePlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PIL/BmpImagePlugin.py b/PIL/BmpImagePlugin.py index 30ca10971..793bd8edd 100644 --- a/PIL/BmpImagePlugin.py +++ b/PIL/BmpImagePlugin.py @@ -279,3 +279,5 @@ Image.register_open(BmpImageFile.format, BmpImageFile, _accept) Image.register_save(BmpImageFile.format, _save) Image.register_extension(BmpImageFile.format, ".bmp") + +Image.register_mime(BmpImageFile.format, "image/bmp")