diff --git a/src/PIL/EpsImagePlugin.py b/src/PIL/EpsImagePlugin.py index 0c50afe13..6da3a36de 100644 --- a/src/PIL/EpsImagePlugin.py +++ b/src/PIL/EpsImagePlugin.py @@ -139,7 +139,12 @@ def Ghostscript(tile, size, fp, scale=1): # push data through ghostscript try: with open(os.devnull, 'w+b') as devnull: - subprocess.check_call(command, stdin=devnull, stdout=devnull) + startupinfo = None + if sys.platform.startswith('win'): + startupinfo = subprocess.STARTUPINFO() + startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + subprocess.check_call(command, stdin=devnull, stdout=devnull, + startupinfo=startupinfo) im = Image.open(outfile) im.load() finally: