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. (#2003)

https://stackoverflow.com/a/76616129/4522678
  • Loading branch information
yoichitgy authored Jul 11, 2023
1 parent b5bb086 commit e163cf5
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

1 comment on commit e163cf5

@pwd491
Copy link

@pwd491 pwd491 commented on e163cf5 Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, update the current.

Please sign in to comment.