Reduced number of bytes read for header

This commit is contained in:
Andrew Murray 2025-05-21 20:36:19 +10:00
parent 7e4d8e2f55
commit 4eb89f8e5b

View File

@ -81,7 +81,7 @@ class WmfStubImageFile(ImageFile.StubImageFile):
def _open(self) -> None:
# check placable header
s = self.fp.read(80)
s = self.fp.read(44)
if s.startswith(b"\xd7\xcd\xc6\x9a\x00\x00"):
# placeable windows metafile