Skip to content

Commit

Permalink
Fix the issue caused by deprecation of ANTIALIAS in Pillow version 10…
Browse files Browse the repository at this point in the history
….0.0

Zulko#2003
  • Loading branch information
yoichitgy committed Jul 30, 2023
1 parent cd3a58a commit ca9fe4e
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 @@ -34,7 +34,7 @@ def resizer(pic, newsize):
newshape = (newsize[0],newsize[1])

pilim = Image.fromarray(pic)
resized_pil = pilim.resize(newsize[::-1], Image.ANTIALIAS)
resized_pil = pilim.resize(newsize[::-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 ca9fe4e

Please sign in to comment.