Skip to content

Commit

Permalink
Fix for magick on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervanheuven committed Dec 10, 2023
1 parent c457915 commit 95f588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/auto_alt_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95f588f

Please sign in to comment.