Replies: 1 comment 6 replies
-
I'm not sure if this is good news or bad news for you, but I have never written any scripts related to preview images. For example, this is your current return: return (
your_return_item1,
your_return_item2,
your_return_item3,
) Add a new UI item: return {
"ui": {"images": the_image_you_wanna_display},
"result": (
your_return_item1,
your_return_item2,
your_return_item3,
),
} If you want to display multiple images, such as histograms of different channels, you just need to combine them into one array: return {
"ui": {"images": [RGB_filled, RGB_lines, Red, Gree, Blue, Luminosity]},
"result": (
your_return_item1,
your_return_item2,
your_return_item3,
),
} If you have any questions, please feel free to tell me. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have created a new custom node called Histograms. It basically takes in an image, and it calculates the histogram for the image and generates various graphs depicting the data graphically. I am a photographer, so this node helps me see how my images look like I am used to in Photoshop.
https://github.com/gonzalu/ComfyUI_YFG_Comical
Anyway, one of the functionalities I wanted to implement, is a self-output mechanism where the node displays the image itself without needing the PREVIEW IMAGE node.
I noticed that your SD Prompt Saver node does this...
Can you tell me what I need to do to my node to have it display the image?
Currently I generate 6 different images. One each for RGB filled, RGB lines, Red, Gree, Blue and Luminosity channels.
my idea was to have a selector that lets the user pick which histogram they want to display in the node and then the node generates it and displays it at once.
Thanks very much for your expertise and insight. Not much documentation on the way to self-display. I have been trying for like 4 days different methods. Searching does not produce any results of how it is done.
DISCLAIMER: I am NOT a developer at all. I created my nodes with the help of ChatGPT-4 and Google Gemini and lots of trial and error :D
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions