Applies a convert('RGBA') operation early to mimic previous behaviour.

This commit is contained in:
CodeHatchling 2023-12-04 17:57:10 -07:00
parent 60c602232f
commit b32a334e3d
1 changed files with 1 additions and 1 deletions

View File

@ -1500,7 +1500,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
if image_mask is not None: if image_mask is not None:
if self.soft_inpainting is not None: if self.soft_inpainting is not None:
# We apply the masks AFTER to adjust mask based on changed content. # We apply the masks AFTER to adjust mask based on changed content.
self.overlay_images.append(image) self.overlay_images.append(image.convert('RGBA'))
self.masks_for_overlay.append(image_mask) self.masks_for_overlay.append(image_mask)
else: else:
image_masked = Image.new('RGBa', (image.width, image.height)) image_masked = Image.new('RGBa', (image.width, image.height))