From 5a30276953ee381407809c28fac4be6400f3fb3f Mon Sep 17 00:00:00 2001 From: bymyself Date: Fri, 11 Apr 2025 08:08:05 -0700 Subject: [PATCH] filter image files in load image dropdown --- nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes.py b/nodes.py index 8c1720c1a..e2893e83a 100644 --- a/nodes.py +++ b/nodes.py @@ -1654,6 +1654,7 @@ class LoadImage: def INPUT_TYPES(s): input_dir = folder_paths.get_input_directory() files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f))] + files = folder_paths.filter_files_content_types(files, ["image"]) return {"required": {"image": (sorted(files), {"image_upload": True})}, }