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-10-15 19:32:59 +0200
commit22089564f871cb265646e878291fecd423edf188 (patch)
tree3a8a51602a5b1cdcea52f17b1771955b57b927cd /ishtar_common/models.py
parentae5bd7720b27ebf3790c50d1b1e6c95edbc089cf (diff)
downloadIshtar-22089564f871cb265646e878291fecd423edf188.tar.bz2
Ishtar-22089564f871cb265646e878291fecd423edf188.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 4ae11a777..06aa2a67c 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -531,7 +531,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)