Closed alimirjahani7 closed 4 months ago
Already fix (issue #2002) by the pull request #2003. (https://github.com/Zulko/moviepy/pull/2003 but I'm not sure in which version of MoviePy this has been fixed)
File moviepy/video/fx/resize.py: resized_pil = pil_img.resize(new_size[::-1], Image.ANTIALIAS) was replaced by : resized_pil = pil_img.resize(new_size[::-1], Image.LANCZOS)
Hoping that I have been helpful ;)
Thanks but I checked and faced this error in the latest version of moviepy
I had same problem. I fixed it jast installing opencv-python it works for me. because Moviepy use external moduls for resize function. a find answer hear https://github.com/Zulko/moviepy/issues/2002
Already fix (issue #2002) by the pull request #2003. (#2003 but I'm not sure in which version of MoviePy this has been fixed)
File moviepy/video/fx/resize.py: resized_pil = pil_img.resize(new_size[::-1], Image.ANTIALIAS) was replaced by : resized_pil = pil_img.resize(new_size[::-1], Image.LANCZOS)
Hoping that I have been helpful ;)
Latest release of moviepy is 1.0.3, and it is from May 7 2020, hence any of the fixes that have been made are unlikely to be live on PyPI. It would be a good idea to have one of the fixed versions released on PyPI for everyone to use.
Another repo with update code which don't release any more :/(
Another repo with update code which don't release any more :/(
I think that unfortunately that is true. Most of the functionality is still there though. I think there is a PR that aims to be a 2.0 release of moviepy. I am not sure who is a contributor that could make the decision to include the changes and go forward with all of this.
Closing this as duplicate of #2072, which seems to be the only ticket referencing the library's actual release notes.
Expected Behavior
generate a video with reduced size
Actual Behavior
raise exception AttributeError("module 'PIL.Image' has no attribute 'ANTIALIAS'")
Steps to Reproduce the Problem
install pillow version 10
Specifications
looks like pillow version 10 removed the support for ANTIALIAS https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias