Skip to content

Commit

Permalink
magick fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
waltervanheuven committed Dec 10, 2023
1 parent b675869 commit c457915
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] = ["convert", image_file_path, "--outdir", dirname]
cmd:list[str] = ["magick", "convert", image_file_path, "--outdir", dirname]
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 c457915

Please sign in to comment.