Trailer is not in header, ImageData or itself

This commit is contained in:
Andrew Murray 2023-09-22 18:03:04 +10:00
parent 094f23dd5c
commit 9de4b72c97

View File

@ -373,8 +373,7 @@ class EpsImageFile(ImageFile.ImageFile):
s = str(bytes_mv[:bytes_read], "latin-1")
_read_comment(s)
if bytes_mv[:9] == b"%%Trailer":
elif bytes_mv[:9] == b"%%Trailer":
trailer_reached = True
bytes_read = 0