Skip to content

Commit

Permalink
Use title for display
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 23, 2021
1 parent 862be7c commit b3e690a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PIL/ImageShow.py
Expand Up @@ -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


Expand Down

0 comments on commit b3e690a

Please sign in to comment.