Skip to content

Commit

Permalink
Fix the issue that Image.ANTIALIAS was deprecated in Pillow version 1…
Browse files Browse the repository at this point in the history
…0.0.0. Instead, Image.LANCZOS is used.

https://stackoverflow.com/a/76616129/4522678
  • Loading branch information
yoichitgy committed Jul 5, 2023
1 parent b5bb086 commit 1d95b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moviepy/video/fx/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def resizer(pic, new_size):
# 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)
Expand Down

0 comments on commit 1d95b23

Please sign in to comment.