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
@@ -865,7 +865,7 @@ def create_ui(container, button_parent: gr.Button, tabname: str, skip_indexing =
if ui.last_item is None:
return desc
basename = os.path.splitext(ui.last_item.filename)[0]
extensions = ['.safetensors', '.ckpt', '.txt', '.json', '.thumb.jpg', '.jpg', '.jpeg', '.png', '.webp', '.tiff', '.jp2', '.jxl']
extensions = ['.safetensors', '.ckpt', '.txt', '.json', '.thumb.jpg', '.jpg', '.jpeg', '.png', '.webp', '.tiff', '.jp2', '.jxl', '.heif', '.heic', '.gif']
candidates = []
for ext in extensions:
fn = basename + ext