This commit is contained in:
justumen
2024-09-17 12:07:26 +02:00
parent 992a2e762d
commit 510d25e766
9 changed files with 153 additions and 41 deletions

View File

@@ -15,11 +15,10 @@ class LoadImageWithTransparency:
{"image": (sorted(files), {"image_upload": True})},
}
CATEGORY = "image"
RETURN_TYPES = ("IMAGE", "MASK", "STRING") # Added "STRING" for the image path
RETURN_NAMES = ("image", "mask", "image_path")
FUNCTION = "load_image_alpha"
CATEGORY = "Bjornulf"
def load_image_alpha(self, image):
image_path = folder_paths.get_annotated_filepath(image)