Skip to content

Commit fcc1643

Browse files
authored
Sub call to deprecated pillow API Image.ANTIALIAS (#8415)
ANTIALIAS was removed in Pillow 10.0.0
1 parent 2068729 commit fcc1643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ async def send_image(self, image_data, sid=None):
788788
if hasattr(Image, 'Resampling'):
789789
resampling = Image.Resampling.BILINEAR
790790
else:
791-
resampling = Image.ANTIALIAS
791+
resampling = Image.Resampling.LANCZOS
792792

793793
image = ImageOps.contain(image, (max_size, max_size), resampling)
794794
type_num = 1

0 commit comments

Comments
 (0)