1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Expand supported image file extensions in LoadImageSetNode

This commit is contained in:
Yoland Y
2025-03-10 15:23:48 -07:00
committed by Yoland Yan
parent b87f55ed65
commit d58ad2dd19

View File

@@ -144,7 +144,7 @@ class LoadImageSetNode:
[
f
for f in os.listdir(folder_paths.get_input_directory())
if f.endswith((".png", ".jpg", ".jpeg", ".webp"))
if f.endswith((".png", ".jpg", ".jpeg", ".webp", ".bmp", ".gif", ".jpe", ".apng", ".tif", ".tiff"))
],
{"image_upload": True, "allow_batch": True},
)
@@ -175,7 +175,7 @@ class LoadImageSetNode:
def load_images(self, input_files, resize_method):
input_dir = folder_paths.get_input_directory()
valid_extensions = [".png", ".jpg", ".jpeg", ".webp"]
valid_extensions = [".png", ".jpg", ".jpeg", ".webp", ".bmp", ".gif", ".jpe", ".apng", ".tif", ".tiff"]
image_files = [
f
for f in input_files