mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-15 07:44:30 +08:00
Update image_nodes.py
This commit is contained in:
parent
bff39a4e9c
commit
a23d734fa0
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user