Skip to content

Commit

Permalink
Last trailer comment has priority
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 22, 2023
1 parent 9de4b72 commit d919942
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tests/images/zero_bb_trailer.eps

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def _read_comment(s):
if k == "BoundingBox":
if v == "(atend)":
reading_trailer_comments = True
elif not self._size:
elif not self._size or reading_trailer_comments:
try:
# Note: The DSC spec says that BoundingBox
# fields should be integers, but some drivers
Expand Down

0 comments on commit d919942

Please sign in to comment.