Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

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

SDfcc1643c527b
diff --git a/server.py b/server.py
index f772545dc..878b5eeb1 100644
--- a/server.py
+++ b/server.py
@@ -788,7 +788,7 @@ class PromptServer():
if hasattr(Image, 'Resampling'):
resampling = Image.Resampling.BILINEAR
else:
- resampling = Image.ANTIALIAS
+ resampling = Image.Resampling.LANCZOS
image = ImageOps.contain(image, (max_size, max_size), resampling)
type_num = 1