Video editing with Python
Fix the issue that Image.ANTIALIAS was deprecated in Pillow version 10.0.0. Instead, Image.LANCZOS is used. (#2003)
Yoichi Tagayae163cf53a4d9
diff --git a/moviepy/video/fx/resize.py b/moviepy/video/fx/resize.pyindex 1476fbb7..7afd6189 100644--- a/moviepy/video/fx/resize.py+++ b/moviepy/video/fx/resize.py@@ -37,7 +37,7 @@ def _get_PIL_resizer():# newshape = (new_size[0], 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.LANCZOS)# arr = np.fromstring(resized_pil.tostring(), dtype="uint8")# arr.reshape(newshape)return np.array(resized_pil)