mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-01-23 21:34:56 +08:00
Update nodes.py
This commit is contained in:
parent
0538fa4783
commit
d418f1adb4
2
nodes.py
2
nodes.py
@ -1357,7 +1357,7 @@ class SaveImageWithAlpha:
|
||||
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
|
||||
|
||||
# Resize the mask to match the image size
|
||||
a_resized = Image.fromarray(a).resize(img.size, Image.ANTIALIAS)
|
||||
a_resized = Image.fromarray(a).resize(img.size, Image.LANCZOS)
|
||||
a_resized = np.clip(a_resized, 0, 255).astype(np.uint8)
|
||||
img.putalpha(Image.fromarray(a_resized, mode='L'))
|
||||
metadata = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user