moviepy icon indicating copy to clipboard operation
moviepy copied to clipboard

Fix deprecated PIL resizing

Open Alex-Carter01 opened this issue 2 years ago • 4 comments

Image.ANTIALIAS is deprecated. Replacing with the suggested replacement Image.Resampling.LANCZOS

see https://github.com/mpetroff/pannellum/issues/1119

  • [ ] I have provided code that clearly demonstrates the bug and that only works correctly when applying this fix
  • [ ] I have added suitable tests demonstrating a fixed bug or new/changed feature to the test suite in tests/
  • [ ] I have properly documented new or changed features in the documentation or in the docstrings
  • [ ] I have properly explained unusual or unexpected code in the comments around it

Alex-Carter01 avatar Nov 19 '23 20:11 Alex-Carter01

Hi all. I also am reading from #1874 that the project could use some maintenance help - please let me know what I can do to help.

Alex-Carter01 avatar Nov 19 '23 20:11 Alex-Carter01

The first sentence in the linked PR says (emphasis mine):

When using recent Pillow, a deprecation warning occurs

Is MoviePy currently using this particular version of Pillow? Or is this a fix that will only become relevant in the future?

keikoro avatar Feb 10 '24 19:02 keikoro

I just found PR #2072 which links to a commit (not a PR) which looks like it's solving a similar – or potentially the same – issue, though the other user's solution looks different.

keikoro avatar Feb 10 '24 19:02 keikoro

Ok, found it, was apparently already merged: #2003 – is your fix another fix on top of that one?

keikoro avatar Feb 10 '24 19:02 keikoro