-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
With Pillow 9.2.0, I get the following deprecation notice:
DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
Is it really necessary to introduce this breaking API change? Can the old names not be kept for backwards compatibility? Thousands of repositories will need to update their code, wasting countless man-hours.
You can get a rough idea on how many repositories are affected from the following two websites, which search a subset of GitHub repositories:
- https://grep.app/search?q=Image.BILINEAR
- https://sourcegraph.com/search?q=context:global+Image.BILINEAR&patternType=standard
from PIL import Image
img = Image.new("RGB", (5, 5))
img.resize((7, 7), Image.BILINEAR)
Metadata
Metadata
Assignees
Labels
No labels