Skip to content

Conversation

bigcat88
Copy link
Contributor

Fixes the same what was in #7032 but for deepcopy(im) operation.

Changes proposed in this pull request:

  • first we load image data in __getstate__ and then only fill list with it's attributes.

@radarhere
Copy link
Member

I've created bigcat88#4 with a suggestion to simplify and move the test.

@radarhere radarhere changed the title Load image before deepcopy(__getstate__) Load before getting size in __getstate__ Apr 23, 2023
@radarhere radarhere merged commit 48a6c3f into python-pillow:main Apr 23, 2023
@bigcat88 bigcat88 deleted the load-before-deepcopy branch May 11, 2023 17:18
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.

2 participants