comfyui-prompt-reader-node icon indicating copy to clipboard operation
comfyui-prompt-reader-node copied to clipboard

[BUG] - converting image field from widget to input doesn't work

Open Jonseed opened this issue 1 year ago • 2 comments

Description

I want to send images from another node to SD Prompt Reader, but if I convert the image field from widget to input, it won't allow connections from other nodes that output images.

Reproduction steps

  1. Convert image field from widget to input
  2. Try to connect another image output node to the SD Prompt Reader image input node. It won't accept it.

Image file

No response

Jonseed avatar Oct 09 '24 20:10 Jonseed

This is most likely by design. The label of the input is image, but the type is COMBO. It works if you feed the input with the output of the SD Prompt Reader "batch loader" node. You can chain this with e.g. the "Load Image Extended" node from the Chibi-Nodes repo. This gives you the usual File Upload button, but you can feed the SD Batch Loader node with the image file path, which can feed the Prompt Reader node.

Clusters avatar Oct 31 '24 17:10 Clusters

Thanks to @Clusters for the explanation. The image tag is special because it uses the same mechanism as Load Image node. This means it takes an image's address as input, not the image itself. Therefore, it can't be directly connected to an image.

receyuki avatar Feb 04 '25 14:02 receyuki