From aa03c5a82a0213260517ea4d1ed8925babea42ca Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 29 Nov 2023 19:56:29 +1100 Subject: [PATCH] Allow reordering of 5-bit masks --- src/PIL/DdsImagePlugin.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index 54a0ccb31..af3d883ba 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -137,7 +137,6 @@ class DdsImageFile(ImageFile.ImageFile): pfsize, pfflags = struct.unpack("<2I", header.read(8)) fourcc = header.read(4) (bitcount,) = struct.unpack("