Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only read when necessary in EpsImagePlugin #6880

Merged
merged 1 commit into from
Jan 11, 2023
Merged

Conversation

radarhere
Copy link
Member

EpsImagePlugin reads 160 characters from the file when finding the offset.

s = fp.read(160)

However, it only uses 4 or 12 characters.

@radarhere radarhere changed the title Only read when necessary in EPS Only read when necessary in EpsImagePlugin Jan 10, 2023
@hugovk hugovk merged commit c683f04 into python-pillow:main Jan 11, 2023
@radarhere radarhere deleted the eps branch January 11, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants