[feat] Add GetImageSize node to return image dimensions

Added a simple GetImageSize node in comfy_extras/nodes_images.py that returns width and height of input images. The node displays dimensions on the UI via PromptServer and provides width/height as outputs for further processing.
This commit is contained in:
bymyself
2025-06-01 21:06:50 -07:00
parent 6d46bb4b4c
commit a9a7c9385a
2 changed files with 34 additions and 1 deletions

View File

@@ -1831,6 +1831,7 @@ class ImageInvert:
s = 1.0 - image
return (s,)
class ImageBatch:
@classmethod