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

Changed WindowsViewer format to PNG #4080

Merged
merged 1 commit into from Sep 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/PIL/Image.py
Expand Up @@ -2110,15 +2110,15 @@ def show(self, title=None, command=None):
Displays this image. This method is mainly intended for
debugging purposes.

On Unix platforms, this method saves the image to a temporary
PNG file, and calls the **display**, **eog** or **xv**
utility, depending on which one can be found.
The image is first saved to a temporary file. By default, it will be in
PNG format.

On macOS, this method saves the image to a temporary PNG file, and
opens it with the native Preview application.
On Unix, the image is then opened using the **display**, **eog** or
**xv** utility, depending on which one can be found.

On Windows, it saves the image to a temporary BMP file, and uses
the standard BMP display utility to show it (usually Paint).
On macOS, the image is opened with the native Preview application.

On Windows, the image is opened with the standard PNG display utility.

:param title: Optional title to use for the image window,
where possible.
Expand Down
3 changes: 2 additions & 1 deletion src/PIL/ImageShow.py
Expand Up @@ -105,7 +105,8 @@ def show_file(self, file, **options):
if sys.platform == "win32":

class WindowsViewer(Viewer):
format = "BMP"
format = "PNG"
options = {"compress_level": 1}

def get_command(self, file, **options):
return (
Expand Down