Skip to content
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

Show all frames in ImageShow #6611

Merged
merged 1 commit into from Oct 12, 2022
Merged

Conversation

radarhere
Copy link
Member

Helps #6608

The issue requests that multiple frames be displayed when using ImageShow. This PR adds the save_all argument.

@@ -136,7 +136,7 @@ class WindowsViewer(Viewer):
"""The default viewer on Windows is the default system application for PNG files."""

format = "PNG"
options = {"compress_level": 1}
options = {"compress_level": 1, "save_all": True}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Photos, the default Windows viewer for images, does not support APNG and only shows the first frame. However, users can change their default viewer to one that does support APNG, so this is still a worthwhile change.

@hugovk hugovk merged commit 5852b84 into python-pillow:main Oct 12, 2022
@radarhere radarhere deleted the imageshow branch October 12, 2022 10:55
radarhere added a commit to radarhere/Pillow that referenced this pull request Oct 19, 2022
hugovk added a commit that referenced this pull request Oct 19, 2022
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.

None yet

3 participants