Skip to content
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

Deprecation warning: Image.BILINEAR (pillow >=9.1.0) #75

Open
paulgoetze opened this issue Oct 2, 2022 · 3 comments
Open

Deprecation warning: Image.BILINEAR (pillow >=9.1.0) #75

paulgoetze opened this issue Oct 2, 2022 · 3 comments

Comments

@paulgoetze
Copy link

Thanks for the development & maintenance of the filedepot package!

I recently started seeing this deprecation warning when using the WithThumbnailFilter class with pillow v9.2.0 (I'm running on Python 3.10.7):

lib/python3.10/site-packages/depot/fields/filters/thumbnails.py:37: DeprecationWarning: 
BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
    thumbnail.thumbnail(self.thumbnail_size, Image.BILINEAR)

It looks like Image.BILINEAR was deprecated in pillow 9.1.0 in favour of Image.Resampling.BILINEAR.

@amol-
Copy link
Owner

amol- commented Dec 12, 2022

If you are willing to contribute a PR to address those warnings I'll gladly take a look at it 👍

@paulgoetze
Copy link
Author

Thanks @amol-, I'll try and prepare a PR in the next days.

@amol-
Copy link
Owner

amol- commented Feb 22, 2024

Were those deprecation retired? It seems that in Pillow 10.2.0 Image.BILINEAR doesn't raise any deprecation warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants