ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Newest frontend update (partially) broke previews

Open NuclearWaste02 opened this issue 1 year ago • 11 comments

Expected Behavior

When having previews enabled during ksampler generation, you used to be able to right click and "Open Image" on the finalized preview and view it in the web browser.

Actual Behavior

Now it only renders previews at an extremely low quality. Clicking "Open Image", "Save Image" or "Copy Image" all don't work anymore and redirect to a blob image instead of the local file in the temp folder.

Steps to Reproduce

Generate an image with a sampler that generates a realtime preview (e.g. KSampler Efficient). Once the image is generated, right click on the preview and hit "Open Image".

Debug Logs

N/A

Other

Issue persists after latest update. This merge seemed to cause this issue.

NuclearWaste02 avatar Mar 08 '25 15:03 NuclearWaste02

I am not sure if it is a frontend issue starting from v1.11 frontend. The preview quality in between v1.10 and v1.11 frontend are not significant to me.

v1.10 preview

Image

Image

v1.11 preview

Image

Image

Is the high quality preview feature provided by a custom node? Can you try reproduce the issue with --disable-all-custom-nodes flag?

huchenlei avatar Mar 08 '25 20:03 huchenlei

I've tested the issue, but I had no problem opening, copy-pasting and saving an image from Preview Image node (@NuclearWaste02 is this the problem, right?)

This is frontend v1.11.8 and all custom nodes disabled:

https://github.com/user-attachments/assets/16a06b11-6a5e-4243-a9ce-a8989f21c2c7

(btw, I have no issues even with my nodes enabled)

LukeG89 avatar Mar 08 '25 21:03 LukeG89

I'm using a custom KSampler from the efficiency nodes pack. Coincidentally the same one used in the duplicate issue. It seems like the issue is with that node and not the new frontend update. My apologies!

NuclearWaste02 avatar Mar 08 '25 21:03 NuclearWaste02

I'm experiencing a similar problem with the standard ksampler node. I can't remember if the "old" behaviour was different with this node (until now I also used Efficiency Ksampler), but it seems right now that also changing the quality of the preview has no effect on the resulting preview of the KSampler node. I attach the result tested with the default workflow

Please let me know if there is some specifical test that could be useful to understand if it is a general problem or a custom node, and the behaviour of the standard ksampler is correct (also, for batches of file, it is shown only the preview for the first one)

Image Image

Vik71it avatar Mar 09 '25 10:03 Vik71it

also, for batches of file, it is shown only the preview for the first one

Do you mean your expectation is an image grid of previews on the KSampler?

christian-byrne avatar Mar 09 '25 10:03 christian-byrne

Do you mean your expectation is an image grid of previews on the KSampler?

Something similar to the "Preview Image" behaviour for a batch. But, since I was using a different KSampler node, not the standard one, I can't really say that this was the behaviour in previous releases.

Vik71it avatar Mar 09 '25 11:03 Vik71it

The issue is found in the frontend: https://github.com/Comfy-Org/ComfyUI_frontend/issues/2944 Resolved in https://github.com/Comfy-Org/ComfyUI_frontend/pull/2952 (1.13.1 frontend). Once the fix is verified to work, the fix will be cherry-picked back to 1.12 and 1.11.

huchenlei avatar Mar 10 '25 02:03 huchenlei

The issue is found in the frontend: Comfy-Org/ComfyUI_frontend#2944 Resolved in Comfy-Org/ComfyUI_frontend#2952 (1.13.1 frontend). Once the fix is verified to work, the fix will be cherry-picked back to 1.12 and 1.11.

This issue still persists in the latest frontend. Again, it only happens in sampler nodes (I'm aware that it works fine in preview nodes).

NuclearWaste02 avatar Apr 12 '25 16:04 NuclearWaste02

The issue of not being able to right click KSampler previews, or them being a quality you did not expect?

christian-byrne avatar Apr 12 '25 21:04 christian-byrne

The issue of not being able to right click KSampler previews, or them being a quality you did not expect?

Still having the same issue. The previews stop if you go to a different tab, they won't update at all. If you click for it to run, and then go to another tab, when you come back to Comfy tab, the ksampler preview has not updated at all and still shows the previous one. The quality is fine. I think the problem is that when you use a preview, it never decodes inside the ksampler like it used it. If you select "VAE DECODE ONLY" as your preview method, you won't get live previews of it but it will decode inside the sampler and then you can right click and open in new tab and the image is full quality. If you go with TAESD or other preview method, it won't preview properly and will create a "blob" link when you try to open it in new tab to preview the image. It no longer decodes inside the sampler itself.

barbosaai avatar Apr 16 '25 00:04 barbosaai

The tab issue is a distinct issue from the one mentioned here. It's being tracked here https://github.com/Comfy-Org/ComfyUI_frontend/issues/3377

christian-byrne avatar Apr 17 '25 00:04 christian-byrne