bashu / django-watermark

💋 Quick and efficient way to apply watermarks to images in django
BSD 3-Clause "New" or "Revised" License
75 stars 44 forks source link

Image.ANTIALIAS is deprecated #45

Open rsequeira12 opened 1 year ago

rsequeira12 commented 1 year ago

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 commented 11 months ago

Thank you @rsequeira12. Pillow 10.0.0 indeed removed it.

krzysztofjeziorny commented 11 months ago

@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 commented 7 months ago

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.