Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #8936

#8483 added a generic way to set additional options when saving subsequent frames.

from PIL import Image

im = Image.open("Tests/images/hopper.png")
second_im = Image.new("RGB", (128, 128))
second_im.encoderinfo = {"xmp": b"Second frame"}
im.save("out.mpo", save_all=True, append_images=[second_im])

In that PR, I deleted the image's encoderinfo at the end of the save process. The user would more likely expect the image's encoderinfo to still hold the same information.

@hugovk hugovk merged commit 3a66b1d into python-pillow:main Jun 27, 2025
55 checks passed
@radarhere radarhere deleted the encoderinfo branch June 27, 2025 15:17
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.

AttributeError: 'Image' object has no attribute 'encoderinfo'. Did you mean: 'encoderconfig'?

2 participants