add ImageInfo node

This commit is contained in:
AngelBottomless
2024-11-20 12:44:12 +09:00
committed by GitHub
parent a82853e042
commit ec8c0770d0
2 changed files with 34 additions and 14 deletions
+20
View File
@@ -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"
+14 -14
View File
@@ -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 = ""