Loads an image from an RGBA image embedded into the prompt as base64 string.
Loads a mask (single channel) from an RGBA image embedded into the prompt as base64 string.
Sends an output image over the client WebSocket connection as RGBA data.
This will send one base64 encoded message for the image via WebSocket:
12<RGBA-data>
That is one 32-bit integer (big endian) with value 12 followed by the base64 encoded RGBA binary data. There is also a JSON message afterwards:
{'type': 'executed', 'data': {'node': '<node ID>', 'output': {'images': [{'source': 'websocket', 'content-type': 'image/png', 'type': 'output'}, ...]}, 'prompt_id': '<prompt ID>}}
You can see how the data is received in the GIMP plugin at https://github.com/nchenevey1/gimp-comfy-tools
Sends an output image over the client WebSocket connection as RGBA data.
This will send one base64 encoded message for the image via WebSocket:
14<width><height><RGBA-data>
That is one 32-bit integer (big endian) with value 14 followed by the base64 encoded Width (32 bit), Height (32 bit), and RGBA binary data. There is also a JSON message afterwards:
{'type': 'executed', 'data': {'node': '<node ID>', 'output': {'images': [{'source': 'websocket', 'content-type': 'image/png', 'type': 'output'}, ...]}, 'prompt_id': '<prompt ID>}}
You can see how the data is received in the GIMP plugin at https://github.com/nchenevey1/gimp-comfy-tools
Download the repository and unpack into the custom_nodes folder in the ComfyUI installation directory.
Or clone via GIT, starting from ComfyUI installation directory:
cd custom_nodes
git clone https://github.com/nchenevey1/comfyui-gimp-nodes.git
Restart ComfyUI and the nodes are functional.