diff --git a/WWAACustomNodes.py b/WWAACustomNodes.py index b79f132..2dc5e00 100644 --- a/WWAACustomNodes.py +++ b/WWAACustomNodes.py @@ -33,7 +33,7 @@ class WWAA_ImageLoader: return { "required": { "directory_path": ("STRING", {"default": ""}), - "file_extension": (["PNG", "JPG", "JPEG", "ALL"], {"default": "ALL"}), + "file_extension": (["PNG", "JPG", "JPEG","WEBP", "ALL"], {"default": "ALL"}), "reset_index": ("BOOLEAN", {"default": False}), "sort_method": (["alphabetical", "numerical", "creation_time", "modification_time"], {"default": "numerical"}), "reload_directory": ("BOOLEAN", {"default": False}), @@ -135,7 +135,7 @@ class WWAA_ImageLoader: raise ValueError(f"Directory not found: {directory_path}") # Get all image files with specified extension - allowed_extensions = ('.png', '.jpg', '.jpeg') if file_extension == "ALL" else \ + allowed_extensions = ('.png', '.jpg', '.jpeg','.webp') if file_extension == "ALL" else \ (f'.{file_extension.lower()}',) # Get files and sort them according to the selected method diff --git a/pyproject.toml b/pyproject.toml index 71b6103..30ee160 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [project] name = "wwaa-customnodes" # Unique identifier for your node. Immutable after creation. description = "Custom Nodes by the team at WeirdWonderfulAI.Art. Line Count, Join String, Dither Image, Image Batch Loader, Prompt Writer, LLM Prompt To Text File, Advanced Text File Reader,Game Boy Camera Style, Nested Loop" -version = "1.7.1" # Custom Node version. Must be semantically versioned. +version = "1.7.2" # Custom Node version. Must be semantically versioned. license = {file = "LICENSE"} dependencies = [] # Filled in from requirements.txt