Skip to content

Expand GIF core image during seek() - #10356

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:gif_size
Open

radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:gif_size

Conversation

@radarhere

@radarhere radarhere commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Since #3822, if a GIF frame extends past the right or bottom of an image, the image is expanded during seek().

Or rather, the Python image size is changed. The core image size is only changed during load().

This PR suggests expanding the core image during seek(), to better align with the spirit of #10105 - in that PR, several formats cleared their core image after seek() if they weren't matching the size of the Python image.

@radarhere radarhere added the GIF label Oct 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant