From 6de70524f728dc18dc1ffc9e6fa1f3c9e46827a0 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sun, 26 Jan 2014 20:43:21 -0800 Subject: [PATCH] 108 and 124 bit header fields are a superset of the 64 bit header --- PIL/BmpImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/BmpImagePlugin.py b/PIL/BmpImagePlugin.py index 87e5f7888..86b74ff28 100644 --- a/PIL/BmpImagePlugin.py +++ b/PIL/BmpImagePlugin.py @@ -82,7 +82,7 @@ class BmpImageFile(ImageFile.ImageFile): colors = 0 direction = -1 - elif len(s) in [40, 64]: + elif len(s) in [40, 64, 108, 124]: # WIN 3.1 or OS/2 2.0 INFO bits = i16(s[14:])