diff --git a/PIL/ImageShow.py b/PIL/ImageShow.py index f59ba9bad..bf8c67eb5 100644 --- a/PIL/ImageShow.py +++ b/PIL/ImageShow.py @@ -101,6 +101,7 @@ class Viewer(object): # -------------------------------------------------------------------- + if sys.platform == "win32": class WindowsViewer(Viewer): @@ -164,6 +165,14 @@ else: if which("display"): register(DisplayViewer) + class EogViewer(UnixViewer): + def get_command_ex(self, file, **options): + command = executable = "eog" + return command, executable + + if which("eog"): + register(EogViewer) + class XVViewer(UnixViewer): def get_command_ex(self, file, title=None, **options): # note: xv is pretty outdated. most modern systems have