We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b9e66 commit 885e305Copy full SHA for 885e305
src/PIL/WmfImagePlugin.py
@@ -21,7 +21,6 @@
21
22
from . import Image, ImageFile
23
from ._binary import i16le as word
24
-from ._binary import i32le as dword
25
from ._binary import si16le as short
26
from ._binary import si32le as _long
27
@@ -112,7 +111,7 @@ def _open(self):
112
111
if s[22:26] != b"\x01\x00\t\x00":
113
raise SyntaxError("Unsupported WMF file format")
114
115
- elif dword(s) == 1 and s[40:44] == b" EMF":
+ elif s[:4] == b"\x01\x00\x00\x00" and s[40:44] == b" EMF":
116
# enhanced metafile
117
118
# get bounding box
0 commit comments