From 73ecb75a3d375da2642f285866b2ce8b6e34b922 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sun, 13 Apr 2025 06:27:59 +0800 Subject: [PATCH] filter image files in load image dropdown (#7573) --- nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes.py b/nodes.py index 8c1720c1..e2893e83 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})}, }