add heif/heic support

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-08-26 10:24:17 +02:00
parent 0fde1f4dae
commit acb4e758d3
18 changed files with 153 additions and 21 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ def print_json(data):
def read_exif(filename: str):
if filename.lower().endswith('.heic'):
if filename.lower().endswith('.heic') or filename.lower().endswith('.heif'):
from pillow_heif import register_heif_opener
register_heif_opener()
try:
+1 -1
View File
@@ -103,7 +103,7 @@ if __name__ == '__main__':
for file in files:
if not filetype.is_image(file):
continue
if file.lower().endswith('.heic'):
if file.lower().endswith('.heic') or file.lower().endswith('.heif'):
from pillow_heif import register_heif_opener
register_heif_opener()
log.debug(file)