diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index bf3807c84..b27781f3c 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -368,12 +368,6 @@ class DdsImageFile(ImageFile.ImageFile): msg = f"Unsupported bitcount {bitcount} for {pfflags}" raise OSError(msg) rawmode = rawmode[::-1] - elif pfflags & DDPF.ALPHA: - if bitcount == 8: - self._mode = "L" - else: - msg = f"Unsupported bitcount {bitcount} for {pfflags}" - raise OSError(msg) elif pfflags & DDPF.LUMINANCE: if bitcount == 8: self._mode = "L"