diff --git a/Tests/images/zero_bb_trailer.eps b/Tests/images/zero_bb_trailer.eps index 84ee7829c..964889965 100644 Binary files a/Tests/images/zero_bb_trailer.eps and b/Tests/images/zero_bb_trailer.eps differ diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index fcc2463b8..95af62540 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -259,7 +259,7 @@ class EpsImageFile(ImageFile.ImageFile): 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