ImageMagick script for converting .heic to .jpg
import os
import subprocess
lst = os.listdir(".")
for entry in lst:
if entry.lower().endswith(".heic"):
fname = os.path.basename(entry).split(".")[0] + ".jpg"
print(f"Converting {entry} to {fname}")
ran_proc = subprocess.run(["magick",entry,"-quality","100%",fname])
if ran_proc.stdout:
print(f"Stdout is {ran_proc.stdout}")
if ran_proc.stderr:
print(f"Stderr is {ran_proc.stderr}")