From 1859bc346260f9791d4b4c240f91aa9bf13cedac Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 25 Feb 2022 17:50:21 +1100 Subject: [PATCH] Added reading non-JPEG BLP1 as RGBA --- src/PIL/BlpImagePlugin.py | 75 ++++++++++++++++++--------------------- 1 file changed, 34 insertions(+), 41 deletions(-) diff --git a/src/PIL/BlpImagePlugin.py b/src/PIL/BlpImagePlugin.py index f83f1979e..ffd0412e9 100644 --- a/src/PIL/BlpImagePlugin.py +++ b/src/PIL/BlpImagePlugin.py @@ -288,15 +288,12 @@ class BlpImageFile(ImageFile.ImageFile): self.fp.seek(2, os.SEEK_CUR) self._size = struct.unpack("