WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

Added WAS_Image_Send_HTTP, which allows send IMAGE type to remote api #433

Closed SuperMasterBlasterLaser closed 4 months ago

SuperMasterBlasterLaser commented 4 months ago

Hello everyone.

While Image Load node can download images from remote url, we don't have nodes that will send images to api. I've added Image Send HTTP node that will send by using multipart formdata content type.

Outputs simple response code and raw text result:

image

It can also add additional headers, that could help if remote api requires some kind of authorization data.

I've been looking for custom nodes that can upload images to remote api, nearly all of them use sending Base64 text in json which is very wasteful. That's why I've written this node.

WASasquatch commented 4 months ago

Seems interesting and relevant to some tasks, thanks for PR!