diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-26 15:26:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-06-13 18:08:06 +0200 |
commit | 510b9de8fc74807723d73985a84d494218886db9 (patch) | |
tree | eec22d9e2b42814270c3fd022774386492960d43 /ishtar_common/models.py | |
parent | f83a1ca1190d2357f668ea182c7b20181fe117e7 (diff) | |
download | Ishtar-510b9de8fc74807723d73985a84d494218886db9.tar.bz2 Ishtar-510b9de8fc74807723d73985a84d494218886db9.zip |
♻️ django 3.2 deprecation: force_text -> force_str - templates: remove ifequal ; PIL: Image.ANTIALIAS -> Image.Resampling.LANCZOS
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index ca6763a3f..84aab5490 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -519,7 +519,7 @@ class ImageModel(models.Model, ImageContainerModel): def create_thumb(self, image, size): """Returns the image resized to fit inside a box of the given size""" - image.thumbnail(size, Image.ANTIALIAS) + image.thumbnail(size, Image.Resampling.LANCZOS) temp = BytesIO() image.save(temp, "jpeg") temp.seek(0) |