Pillow icon indicating copy to clipboard operation
Pillow copied to clipboard

Stop reading EPS image at EOF marker

Open radarhere opened this issue 1 year ago • 0 comments

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 avatar Jan 25 '24 09:01 radarhere