ComfyUI
ComfyUI copied to clipboard
How to extend LoadImage class? or any node class?
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