We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c0a90 commit 065aeaeCopy full SHA for 065aeae
src/PIL/EpsImagePlugin.py
@@ -231,9 +231,9 @@ def _open(self) -> None:
231
232
def check_required_header_comments() -> None:
233
"""
234
- The EPS spec requires that some headers exist.
235
- This should be checked after all headers have been read,
236
- or at the end of the file if that comes first.
+ The EPS specification requires that some headers exist.
+ This should be checked when the header comments formally end,
+ when image data starts, or when the file ends, whichever comes first.
237
238
if "PS-Adobe" not in self.info:
239
msg = 'EPS header missing "%!PS-Adobe" comment'
0 commit comments