summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
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
commit510b9de8fc74807723d73985a84d494218886db9 (patch)
treeeec22d9e2b42814270c3fd022774386492960d43 /ishtar_common/models.py
parentf83a1ca1190d2357f668ea182c7b20181fe117e7 (diff)
downloadIshtar-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.py2
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)