mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #4080 from radarhere/imageshow
Changed WindowsViewer format to PNG
This commit is contained in:
commit
20b6a8a57b
|
@ -2110,15 +2110,15 @@ class Image(object):
|
||||||
Displays this image. This method is mainly intended for
|
Displays this image. This method is mainly intended for
|
||||||
debugging purposes.
|
debugging purposes.
|
||||||
|
|
||||||
On Unix platforms, this method saves the image to a temporary
|
The image is first saved to a temporary file. By default, it will be in
|
||||||
PNG file, and calls the **display**, **eog** or **xv**
|
PNG format.
|
||||||
utility, depending on which one can be found.
|
|
||||||
|
|
||||||
On macOS, this method saves the image to a temporary PNG file, and
|
On Unix, the image is then opened using the **display**, **eog** or
|
||||||
opens it with the native Preview application.
|
**xv** utility, depending on which one can be found.
|
||||||
|
|
||||||
On Windows, it saves the image to a temporary BMP file, and uses
|
On macOS, the image is opened with the native Preview application.
|
||||||
the standard BMP display utility to show it (usually Paint).
|
|
||||||
|
On Windows, the image is opened with the standard PNG display utility.
|
||||||
|
|
||||||
:param title: Optional title to use for the image window,
|
:param title: Optional title to use for the image window,
|
||||||
where possible.
|
where possible.
|
||||||
|
|
|
@ -105,7 +105,8 @@ class Viewer(object):
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
|
||||||
class WindowsViewer(Viewer):
|
class WindowsViewer(Viewer):
|
||||||
format = "BMP"
|
format = "PNG"
|
||||||
|
options = {"compress_level": 1}
|
||||||
|
|
||||||
def get_command(self, file, **options):
|
def get_command(self, file, **options):
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user