Merge pull request #6611 from radarhere/imageshow

This commit is contained in:
Hugo van Kemenade 2022-10-12 12:50:50 +02:00 committed by GitHub
commit 5852b84162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ class WindowsViewer(Viewer):
"""The default viewer on Windows is the default system application for PNG files.""" """The default viewer on Windows is the default system application for PNG files."""
format = "PNG" format = "PNG"
options = {"compress_level": 1} options = {"compress_level": 1, "save_all": True}
def get_command(self, file, **options): def get_command(self, file, **options):
return ( return (
@ -154,7 +154,7 @@ class MacViewer(Viewer):
"""The default viewer on macOS using ``Preview.app``.""" """The default viewer on macOS using ``Preview.app``."""
format = "PNG" format = "PNG"
options = {"compress_level": 1} options = {"compress_level": 1, "save_all": True}
def get_command(self, file, **options): def get_command(self, file, **options):
# on darwin open returns immediately resulting in the temp # on darwin open returns immediately resulting in the temp
@ -197,7 +197,7 @@ if sys.platform == "darwin":
class UnixViewer(Viewer): class UnixViewer(Viewer):
format = "PNG" format = "PNG"
options = {"compress_level": 1} options = {"compress_level": 1, "save_all": True}
def get_command(self, file, **options): def get_command(self, file, **options):
command = self.get_command_ex(file, **options)[0] command = self.get_command_ex(file, **options)[0]