ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

How to extend LoadImage class? or any node class?

Open myusf01 opened this issue 1 year ago • 6 comments

I'm looking to create a custom image loader with width and height outputs.

Duplicating this LoadImage class and then adding width and height output is easy. But I don't want it to do all the process again. So how can we extend this class to add these outputs? https://github.com/comfyanonymous/ComfyUI/blob/f2a7cc912186c89fda9580f36da28c7fc382ea26/nodes.py#L1303

myusf01 avatar Aug 22 '23 15:08 myusf01