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-07-21 15:07:41 +0200
commit62b34d0afb55a5c5c7bc1da22f0c0d293ee3936d (patch)
treed4bbb36fbd4f23f3fe406cefcc3be0ba396d981e /ishtar_common/models.py
parent18556dec8d2989f715d2251342aa4368fda857c8 (diff)
downloadIshtar-62b34d0afb55a5c5c7bc1da22f0c0d293ee3936d.tar.bz2
Ishtar-62b34d0afb55a5c5c7bc1da22f0c0d293ee3936d.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 e3f2b8b61..9a3eac46a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -521,7 +521,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)