From fc4dbc3810f4791d59dd9ea5c4d3e3a26de58c2f Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Sat, 31 Jan 2026 02:41:44 +1100 Subject: [PATCH] Remove unnecessary code in `WmfHandler` (#9411) Co-authored-by: Andrew Murray --- src/PIL/WmfImagePlugin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/PIL/WmfImagePlugin.py b/src/PIL/WmfImagePlugin.py index 3ae86242a..a85c62a93 100644 --- a/src/PIL/WmfImagePlugin.py +++ b/src/PIL/WmfImagePlugin.py @@ -45,7 +45,6 @@ if hasattr(Image.core, "drawwmf"): class WmfHandler(ImageFile.StubHandler): def open(self, im: ImageFile.StubImageFile) -> None: - im._mode = "RGB" self.bbox = im.info["wmf_bbox"] def load(self, im: ImageFile.StubImageFile) -> Image.Image: