fix: outpaint result not getting pasted back correctly

This commit is contained in:
blessedcoolant
2024-02-23 04:54:16 +05:30
committed by psychedelicious
parent 8e1fbd6ed1
commit cc82ce820a
3 changed files with 4 additions and 4 deletions

View File

@ -963,9 +963,7 @@ class IAICanvasPasteBackInvocation(BaseInvocation, WithMetadata, WithBoard):
target_image = context.images.get_pil(self.target_image.image_name)
mask = self._prepare_mask(context.images.get_pil(self.mask.image_name))
# Merge the bands back together
source_image.paste(target_image, (0, 0), mask)
image_dto = context.images.save(image=source_image)
return ImageOutput.build(image_dto)