django-watermark icon indicating copy to clipboard operation
django-watermark copied to clipboard

Image.ANTIALIAS is deprecated

Open rsequeira12 opened this issue 1 year ago • 3 comments

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)

rsequeira12 avatar Jul 31 '23 22:07 rsequeira12

Thank you @rsequeira12. Pillow 10.0.0 indeed removed it.

krzysztofjeziorny avatar Dec 14 '23 11:12 krzysztofjeziorny

@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!

krzysztofjeziorny avatar Dec 14 '23 11:12 krzysztofjeziorny

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.

alvaroscelza avatar Apr 22 '24 03:04 alvaroscelza