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

Image.ANTIALIAS is deprecated #45

Open
rsequeira12 opened this issue Jul 31, 2023 · 3 comments
Open

Image.ANTIALIAS is deprecated #45

rsequeira12 opened this issue Jul 31, 2023 · 3 comments

Comments

@rsequeira12
Copy link
Contributor

correct line 72 in file site-packages/watermarker/templatetags/watermarker.py
replace this:
mark = mark.resize(scale, resample=Image.ANTIALIAS)
for this:
mark = mark.resize(scale, resample=Image.LANCZOS)

@krzysztofjeziorny
Copy link

Thank you @rsequeira12. Pillow 10.0.0 indeed removed it.

@krzysztofjeziorny
Copy link

krzysztofjeziorny commented Dec 14, 2023

@bashu Would it be possible to have a new version? It's been fixed in #46 some months ago already and is in the develop branch? Thanks so much!

@alvaroscelza
Copy link

Hi! Got here after trying to use the library and stumbling upon this error. Would love to have this fixed :)
In the meantime, a quick workaround is to set Pillow<10.0.0 in your project requirements.

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

No branches or pull requests

3 participants