Fix Image Overlay node batch processing by extracting first image

Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-03 17:03:43 +00:00
parent ed4f801c51
commit 08c19f47fe
3 changed files with 4 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -3958,6 +3958,10 @@ class TSC_ImageOverlay:
overlay_image = comfy.utils.common_upscale(samples, overlay_image_size[0], overlay_image_size[1], resize_method, False)
overlay_image = overlay_image.movedim(1, -1)
# Handle batch dimension - use first image if overlay_image is a batch
if len(overlay_image.shape) == 4:
overlay_image = overlay_image[0]
overlay_image = tensor2pil(overlay_image)
# Add Alpha channel to overlay