Skip to content

Commit

Permalink
Merge pull request #5788 from radarhere/display_title
Browse files Browse the repository at this point in the history
Use title for display
  • Loading branch information
hugovk committed Oct 23, 2021
2 parents 862be7c + b3e690a commit 7250e3d
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 7250e3d

Please sign in to comment.