Skip to content

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
@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.

2 participants