From b3e690a27020e0b5fee856b9699eea7a12698384 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 23 Oct 2021 15:53:08 +1100 Subject: [PATCH] Use title for display --- src/PIL/ImageShow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 60c97542f56..130e21d05e4 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -189,8 +189,10 @@ def show_file(self, file, **options): class DisplayViewer(UnixViewer): """The ImageMagick ``display`` command.""" - def get_command_ex(self, file, **options): + def get_command_ex(self, file, title=None, **options): command = executable = "display" + if title: + command += f" -name {quote(title)}" return command, executable