diff --git a/nodes/image_processing.py b/nodes/image_processing.py index 1dd2945..02ce08c 100644 --- a/nodes/image_processing.py +++ b/nodes/image_processing.py @@ -541,8 +541,10 @@ class ColoredImage: Image.alpha_composite(image, fg_image).convert("RGB") ) - elif foreground_mask is not None: - log.warn("Mask ignored because no foreground image is given") + else: + if foreground_mask is not None: + log.warn("Mask ignored because no foreground image is given") + output.append(image.convert("RGB")) output = pil2tensor(output)