1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Sub call to deprecated pillow API Image.ANTIALIAS (#8415)

ANTIALIAS was removed in Pillow 10.0.0
This commit is contained in:
SD
2025-06-04 18:33:42 +05:30
committed by GitHub
parent 20687293fe
commit fcc1643c52

View File

@@ -788,7 +788,7 @@ class PromptServer():
if hasattr(Image, 'Resampling'): if hasattr(Image, 'Resampling'):
resampling = Image.Resampling.BILINEAR resampling = Image.Resampling.BILINEAR
else: else:
resampling = Image.ANTIALIAS resampling = Image.Resampling.LANCZOS
image = ImageOps.contain(image, (max_size, max_size), resampling) image = ImageOps.contain(image, (max_size, max_size), resampling)
type_num = 1 type_num = 1