Closed strarsis closed 1 year ago
I added a conditional check in 7d42e49d1024d65a75ebae5df708f19f42dce711, which will use the new syntax but only if Image.Resampling
exists.
@mpetroff: Awesome! This not only fixes the issue in the future, but also fully preserves backwards-compatibility.
When using recent Pillow, a deprecation warning occurs:
Edit: It is
PIL.Image.Resampling.LANCZOS
but notPIL.Image.LANZCOS
, this is a relatively new feature, so changing it may break the tool for older Pillow versions.