From da21da1d8c36e02a02f2281c41ca228b806037d1 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Mon, 8 Jul 2024 10:21:45 -0700 Subject: [PATCH] The first image in the workflow should be outputted, not the last. --- comfy/cmd/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/cmd/server.py b/comfy/cmd/server.py index 5fe7fc26e..3e13c2348 100644 --- a/comfy/cmd/server.py +++ b/comfy/cmd/server.py @@ -662,7 +662,7 @@ class PromptServer(ExecutorToClientProgress): output_images.append(image_tuple) if len(output_images) > 0: - main_image = output_images[-1] + main_image = output_images[0] filename = main_image["filename"] digest_headers_ = { "Digest": f"SHA-256={content_digest}",