Update image_nodes.py

This commit is contained in:
kijai 2024-08-16 00:54:07 +03:00
parent bff39a4e9c
commit a23d734fa0

View File

@ -1587,8 +1587,8 @@ class LoadAndResizeImage:
} }
CATEGORY = "KJNodes/image" CATEGORY = "KJNodes/image"
RETURN_TYPES = ("IMAGE", "MASK", "INT", "INT",) RETURN_TYPES = ("IMAGE", "MASK", "INT", "INT", "STRING",)
RETURN_NAMES = ("image", "mask", "width", "height",) RETURN_NAMES = ("image", "mask", "width", "height","image_path",)
FUNCTION = "load_image" FUNCTION = "load_image"
def load_image(self, image, resize, width, height, repeat, keep_proportion, divisible_by, mask_channel): def load_image(self, image, resize, width, height, repeat, keep_proportion, divisible_by, mask_channel):
@ -1665,7 +1665,7 @@ class LoadAndResizeImage:
output_mask = output_mask.repeat(repeat, 1, 1) output_mask = output_mask.repeat(repeat, 1, 1)
return (output_image, output_mask, width, height) return (output_image, output_mask, width, height, image_path)
@classmethod @classmethod