Skip to content

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Sep 15, 2025

Resolves #9204

Within an MPO image, the SOF marker in each frame may change the size of the image. However, Pillow currently only changes the size of the Python image, not the C image. The first commit here fixes that. This is similar to #8237.

The second commit switches from a hex-edited image to a smaller one that was created by the user in the issue, so that we're testing a "real" image from the wild, rather than an artificial one.

@hugovk hugovk merged commit c807f65 into python-pillow:main Oct 5, 2025
57 of 58 checks passed
@radarhere radarhere deleted the mpo branch October 5, 2025 11:04
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.

"ValueError: tile cannot extend outside image" for JPEG files exported from macOS Photos app

2 participants