Use save parameters as encoderinfo defaults#9001
Merged
hugovk merged 3 commits intopython-pillow:mainfrom Jun 30, 2025
Merged
Conversation
This was referenced Jun 7, 2025
9760a54 to
0bb99e5
Compare
810d824 to
4211cec
Compare
4211cec to
d4162f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #8963. Alternative to #8974
Originally, additional
im.save()parameters were applied to every frame when saving.Then, #8483 added a generic way to set specific options when saving subsequent frames - with the user setting
encoderinfoon subsequent frames. This meant that subsequent frames no longer used additionalsaveparameters.However, #8963 would like frames to default to the
saveparameters. Also worth considering is that within that scenario, someone might setencoderinfoon the first frame, so that thesaveparameters apply to all frames except the first one.