From 4dc37df1527ec24840db056d39fed1c6da89d018 Mon Sep 17 00:00:00 2001 From: Hugo Date: Fri, 21 Sep 2018 11:00:28 +0300 Subject: [PATCH] Hide the Ghostscript progress dialog on Windows --- src/PIL/EpsImagePlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index 0c50afe13..4782d9389 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -135,6 +135,8 @@ def Ghostscript(tile, size, fp, scale=1): if not gs_windows_binary: raise WindowsError('Unable to locate Ghostscript on paths') command[0] = gs_windows_binary + # Hide the progress dialog + command.append("-dNoCancel") # push data through ghostscript try: