diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-26 15:26:20 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-10-24 18:32:21 +0200 |
| commit | b98b3004bb1a47674c9595a5d674dc4ba83344c8 (patch) | |
| tree | 8c382fb22ff3a8ddbf94dd69ad1a3a81f96cba7a /ishtar_common/models.py | |
| parent | 3b8d21e5bbee1ba59152ba6abc6ab73432fe611f (diff) | |
| download | Ishtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.tar.bz2 Ishtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.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 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) |
