mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add heif/heic support
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user