1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Speed up the mask save and fix refresh replacing copied image.

This commit is contained in:
comfyanonymous
2023-05-08 17:05:28 -04:00
parent a7ebd5aa12
commit a8705dbfe2
2 changed files with 2 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ class PromptServer():
# alpha copy
new_alpha = mask_pil.getchannel('A')
original_pil.putalpha(new_alpha)
original_pil.save(filepath)
original_pil.save(filepath, compress_level=4)
return image_upload(post, image_save_function)