add ImageInfo node
This commit is contained in:
+20
@@ -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
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user