Skip to content

Clipspace Copy + Paste from a "Preview Image" node with multiple images to a "Load Image" node will paste the correct image but *show* the wrong image #6202

@Javalar

Description

@Javalar

Prerequisites

  • I am running the latest version of ComfyUI
  • I have searched existing issues to make sure this isn't a duplicate
  • I have tested with all custom nodes disabled (see how)

What happened?

After generating multiple images and showing them in a "Preview Image" node (or any similar node), performing in a clipspace copy and paste operation from that node to a "Load Image" node will, most of the time, cause the "Load Image" node to display the wrong image.

The more images are in the "Preview Image" node, the more likely the issue is to occur. At 9 images, it almost always happens.

Note that the "Load Image" node will still use the correct image, it just displays the wrong one.

Switching to a different workflow and coming back fixes the issue (the "Load Image" node now displays the correct image).

This issue is relatively recent, having started a few versions ago. Unfortunately, I couldn't tell you when it started exactly.

Steps to Reproduce

  1. Generate multiple images by setting batch_size to a number over 4 in the "Empty Latent Image" node. (9 is a good choice).
  2. Select one of the images in the "Preview Image" node.
  3. Right click the node and select "Copy (Clipspace)".
  4. Right click on the "Load Image" node and select "Paste (Clipspace)".
    The wrong image may be displayed. Try a different one if the issue does not occur.
  5. Navigate to a different workflow and then navigate back.
    The correct image is now displayed.

Example Workflow
Example Video

How is this affecting you?

Causes confusion, even the "Load Image" node works as intended otherwise.

ComfyUI Frontend Version

1.28.7

Browser

Chrome/Chromium

Console Errors

*No errors in console.*

Logs

*No errors in terminal.*

Additional Context

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions