Skip to content

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Sep 18, 2025

Resolves #9210

Page 44 of https://web.mit.edu/PostScript/Adobe/Documents/5001.DSC_Spec.pdf

%%BeginBinary: <bytecount>
<bytecount> ::=
%%EndBinary (no keywords)
These comments are used in a manner similar to the %%Begin(End)Data: comments. The %%Begin(End)Binary: comments are designed to allow a document manager to effectively ignore any binary data these comments encapsulate.

When encountering '%%BeginBinary:', rather than continuing to loop through data and trying to read the mode, size and bounding box, just seek past it.

@hugovk hugovk merged commit 797d83f into python-pillow:main Oct 8, 2025
51 checks passed
@radarhere radarhere deleted the begin_binary branch October 8, 2025 21:06
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.

EPS Image conversion fails after upgrading to 11.2.1 / 11.3.0 from 10.4.0

2 participants