Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.09k stars 1.51k forks source link

Antialias renamed to Lanczos - Starting from Pillow 2.7.0 #2072

Open gkarmas opened 7 months ago

gkarmas commented 7 months ago

Update all instances of Image.ANTIALIAS to Image.LANCZOS

https://pillow.readthedocs.io/en/stable/releasenotes/2.7.0.html#antialias-renamed-to-lanczos

Mavial commented 7 months ago

seems to have been fixed in e163cf53a4d9d82a5697ee8d02099f91dc241cc9, hasn't made release yet though.

nadermx commented 4 months ago

Just wondering if/when this will make it to the newest version of pip?

abdul-alhasany commented 1 month ago

For a workaround you can run pip install Pillow==9.5.0

source

pedrophsms commented 1 month ago

For a workaround you can run pip install Pillow==9.5.0

source

This works for me and fixed the bug "module 'PIL.Image' has no attribute 'ANTIALIAS'"

kennylajara commented 2 weeks ago

For a workaround you can run pip install Pillow==9.5.0

source

It might work, but you are downgrading the package. An alternative workaround is to install opencv-python. MoviePy tries to use opencv-python first and, if not installed, uses pillow as a fallback.