mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-07 22:57:58 +00:00
Sub call to deprecated pillow API Image.ANTIALIAS
(#8415)
ANTIALIAS was removed in Pillow 10.0.0
This commit is contained in:
parent
20687293fe
commit
fcc1643c52
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user