This commit is contained in:
oitsjustjose 2026-06-18 23:21:00 -05:00
commit 3967e285b6
27 changed files with 63 additions and 0 deletions

View file

@ -1,19 +0,0 @@
from PIL import Image
from pillow_heif import register_heif_opener
from pathlib import Path
from sys import argv
def main() -> None:
if len(argv) < 2:
return
path = Path(argv[1]).resolve()
if path.suffix.lower() != ".heic":
return
register_heif_opener()
im = Image.open(path)
im.save(path.with_suffix(".jpeg"), quality=100)
if __name__ == "__main__":
main()