diff --git a/io_node.py b/io_node.py index f923e07..b75c774 100644 --- a/io_node.py +++ b/io_node.py @@ -623,6 +623,26 @@ class ConvertRGBNode: } } +@fundamental_node +class GetImageInfoNode: + FUNCTION="get_image_info" + RETURN_TYPES=("WIDTH", "HEIGHT", "TOTAL_PIXELS") + CATEGORY="image" + custom_name="Get Image Info" + @staticmethod + def get_image_info(image): + image = PILHandlingHodes.handle_input(image) + width, height = image.size + return (width, height, width * height) + @classmethod + def INPUT_TYPES(cls): + return { + "required": { + "image": ("IMAGE",), + } + } + + @fundamental_node class ThresholdNode: FUNCTION = "threshold" diff --git a/pyproject.toml b/pyproject.toml index 9a0cbd2..62027f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,14 @@ -[project] -name = "comfyui-logicutils" -description = "Logical Utils (compare, string, boolean operations) for ComfyUI" -version = "1.1.1" -license = "MIT" - -[project.urls] -Repository = "https://github.com/aria1th/ComfyUI-LogicUtils" -# Used by Comfy Registry https://comfyregistry.org - -[tool.comfy] -PublisherId = "angelbottomless" -DisplayName = "ComfyUI-LogicUtils" -Icon = "" +[project] +name = "comfyui-logicutils" +description = "Logical Utils (compare, string, boolean operations) for ComfyUI" +version = "1.1.2" +license = "MIT" + +[project.urls] +Repository = "https://github.com/aria1th/ComfyUI-LogicUtils" +# Used by Comfy Registry https://comfyregistry.org + +[tool.comfy] +PublisherId = "angelbottomless" +DisplayName = "ComfyUI-LogicUtils" +Icon = ""