-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'PIL.Image' has no attribute 'ANTIALIAS' - resize.py #2002
Comments
What should I do in my local to fetch the fix? |
did you figure it out? |
I'm having the same error: Python Version: 3.11.5 |
Had the same issues. After digging into the source code (https://github.com/Zulko/moviepy/blob/master/moviepy/video/fx/resize.py) I found that moviepy will try to use opencv as resizer first, if opencv not installed it will use PIL which leads to the error we are seeing here. Instead of fixing the deprecated PIL package, simply installing opencv-python works for me. |
Then I suspect that this means that moviepy will add |
yeah i've added |
I have the same error. When moviepy will be fixed to support pil 10? Thanks. |
Add opencast-python package to your pip |
I faced the same issue, so i downgraded to Pillow==9.4.0 and it worked for me! |
The Pil attr ANTIALIAS is Been Deprecated. Therefor We Need to Downgrade the Pillow Version. or Re Download the Moviepy. |
You can edit resize.py in line 37 with this line. |
Yes, it can Work But it is Not Suggested. |
Yeah, but this should work as a temporary solution. |
Thanks, @yoichitgy, also for the fix you submitted. I'm closing this issue – like I've done with the other duplicates – in favour of #2072, which links to the library's official relase notes, to reduce noise. |
So does that mean that for production, i will be forced to make a copy of the entire moviepy repo on my vps, make configs on my dockerfile to edit the resize.py file or downgrade pillow? |
Expected Behavior
resize
function works without an error when Pillow version 10.0.0 is installed.Actual Behavior
The following error is raised at
moviepy/video/fx/resize.py", line 37, in resizer
Steps to Reproduce the Problem
resize
function on aImageClip
.This issue is caused by the deprecation of
ANTIALIAS
in Pillow version 10.0.0.Reference:
https://stackoverflow.com/a/76616129/4522678
Specifications
The text was updated successfully, but these errors were encountered: