From d418f1adb47ff49f6620edaa1a2918cee89d48cb Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 4 Mar 2024 02:06:30 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index d69b052..db3c10e 100644 --- a/nodes.py +++ b/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