From 5e8854b8dbcdd20b29356fbd7f1b99a983430953 Mon Sep 17 00:00:00 2001 From: nulano Date: Mon, 15 Jun 2020 14:54:38 +0200 Subject: [PATCH] add note about overriding Image.show behaviour --- src/PIL/Image.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 3d6da8b84..d75fcc6b0 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2157,8 +2157,10 @@ class Image: def show(self, title=None, command=None): """ - Displays this image. This method is mainly intended for - debugging purposes. + Displays this image. This method is mainly intended for debugging purposes. + + This method calls :py:func:`PIL.ImageShow.show` internally. You can use + :py:func:`PIL.ImageShow.register` to override its default behaviour. The image is first saved to a temporary file. By default, it will be in PNG format. @@ -2170,8 +2172,7 @@ class Image: On Windows, the image is opened with the standard PNG display utility. - :param title: Optional title to use for the image window, - where possible. + :param title: Optional title to use for the image window, where possible. """ if command is not None: