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

Stop reading EPS image at EOF marker #7753

Merged
merged 1 commit into from Mar 11, 2024
Merged

Conversation

radarhere
Copy link
Member

Helps #7751

In the issue, there is an EPS file that has other image data after the EOF marker. This additional data causes Pillow to fail to open the file, as one of the lines starts with "%" and is over 255 characters.

This additional image data appears to be a "preview" - in our test images, it is seen in illuCS6_preview.eps, but not illuCS6_no_preview.eps.

Instead, this PR stops reading the data at the EOF marker.

@radarhere radarhere changed the title Stop reading EPS at EOF marker Stop reading EPS image at EOF marker Jan 25, 2024
@hugovk hugovk merged commit 9ad22fc into python-pillow:main Mar 11, 2024
56 checks passed
@radarhere radarhere deleted the eps branch March 12, 2024 00:54
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