This commit is contained in:
eason 2026-05-02 09:08:59 -07:00 committed by GitHub
commit 4e951c8c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -489,7 +489,8 @@ class PromptServer():
for key in original_pil.text:
metadata.add_text(key, original_pil.text[key])
original_pil = original_pil.convert('RGBA')
mask_pil = Image.open(image.file).convert('RGBA')
with Image.open(image.file) as mask_pil_raw:
mask_pil = mask_pil_raw.convert('RGBA')
# alpha copy
new_alpha = mask_pil.getchannel('A')