Skip to content

Commit

Permalink
Trailer is not in header, ImageData or itself
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 22, 2023
1 parent 094f23d commit 9de4b72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ def _read_comment(s):

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

Expand Down

0 comments on commit 9de4b72

Please sign in to comment.