Skip to content

Video editing with Python

update to laczos instead of antialias in pillow resize

osaajani27edd7b2025d
diff --git a/moviepy/video/fx/Resize.py b/moviepy/video/fx/Resize.py
index a0b9b837..e8555a5e 100644
--- a/moviepy/video/fx/Resize.py
+++ b/moviepy/video/fx/Resize.py
@@ -45,7 +45,7 @@ class Resize(Effect):
new_size = list(map(int, new_size))[::-1]
pil_img = Image.fromarray(pic)
- resized_pil = pil_img.resize(new_size[::-1], Image.ANTIALIAS)
+ resized_pil = pil_img.resize(new_size[::-1], Image.Resampling.LANCZOS)
return np.array(resized_pil)