From 465beea9444d32d39b643105da549948093b6955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=A1=9C?= Date: Wed, 29 Jul 2020 15:38:23 +0900 Subject: [PATCH] Update webplib.py --- webptools/webplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webptools/webplib.py b/webptools/webplib.py index 010a9a7..4cf4e5f 100755 --- a/webptools/webplib.py +++ b/webptools/webplib.py @@ -28,7 +28,7 @@ def cwebp(input_image: str, output_image: str, option: str) -> Dict: # output_image: output image(.jpeg, .pnp ....) # option: options and quality,it should be given between 0 to 100 def dwebp(input_image: str, output_image: str, option: str) -> Dict: - cmd = f"{getdwebp()} {input_image} {option} {output_image}" + cmd = f'"{getdwebp()}" "{input_image}" "{option}" "{output_image}"' p = subprocess.Popen(cmd, shell=True, stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (stdout, stderr) = p.communicate()