Skip to content

Include filename in ImageFile state #8859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2025
Merged

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Apr 2, 2025

Resolves #8857

Like #8476, this adds another item to the pickled state. When an ImageFile instance is pickled and unpickled, it will now retain the image filename.

In thinking about the image filename, I've also added a change for the #8852 functionality - since the user might open the file with an absolute path, and then save it to a relative path, both targeting the same file, let's compare the absolute versions of the filename paths.

@hugovk
Copy link
Member

hugovk commented Apr 2, 2025

Let's be selective in what we merge before we decide whether a new release will go out, but this new-in-11.2.0-(take 1) is a good candidate. Thanks.

@hugovk hugovk merged commit 92eb58e into python-pillow:main Apr 2, 2025
55 checks passed
@radarhere radarhere deleted the filename branch April 2, 2025 12:53
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.

Change in behavior with JPEG Images in 11.2.0
2 participants