From 95f588f42425b202fe28db887e53a69bb02c6a29 Mon Sep 17 00:00:00 2001 From: Walter van Heuven Date: Sun, 10 Dec 2023 21:43:02 +0000 Subject: [PATCH] Fix for magick on windows --- source/auto_alt_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/auto_alt_text.py b/source/auto_alt_text.py index a714e20..b0a02f2 100644 --- a/source/auto_alt_text.py +++ b/source/auto_alt_text.py @@ -818,7 +818,7 @@ def check_readonly_formats(image_file_path: str, settings: dict) -> [str, str, b print("Warning, LibreOffice not installed.") elif platform.system() == "Windows": # convert using magick - cmd:list[str] = ["magick", "convert", image_file_path, "--outdir", dirname] + cmd:list[str] = ["magick", "convert", image_file_path, new_image_file_path] path_to_cmd = shutil.which(cmd[0]) if path_to_cmd is not None: r = subprocess.run(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, shell=False)