Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-08-29 15:38:59 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-08-29 15:38:59 +0300
commit737af3bbf77bdb5a8340e67cb0cd18f4e70148b1 (patch)
treefcfa4b834f192898212fcc65891470edb0fa6b2b
parent820d1650cb361a785d27023d9416ae7292b89afe (diff)
change: Depend on Pillow >= 9.1.0
-rw-r--r--README.md2
-rw-r--r--debian/control2
-rw-r--r--gajim/common/preview_helpers.py2
-rw-r--r--pyproject.toml2
4 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2ed12f3e6..372c9408e 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
- [keyring](https://pypi.org/project/keyring/)
- [precis_i18n](https://pypi.org/project/precis-i18n/)
- [packaging](https://pypi.org/project/packaging/)
-- [Pillow](https://pypi.org/project/Pillow/)
+- [Pillow](https://pypi.org/project/Pillow/) (>=9.1.0)
- [setuptools](https://pypi.org/project/setuptools/) (>=65.0.0)
- [Gtk3](https://gitlab.gnome.org/GNOME/gtk) (>=3.24.30)
- [GLib](https://gitlab.gnome.org/GNOME/glib) (>=2.60.0)
diff --git a/debian/control b/debian/control
index eda9d6903..711a3946d 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@ Build-Depends:
python3-setuptools,
python3-packaging,
python3-cryptography (>=3.4.8),
- python3-pil,
+ python3-pil (>=9.1.0),
gir1.2-gtk-3.0 (>=3.24.30),
gir1.2-gtksource-4,
Rules-Requires-Root: no
diff --git a/gajim/common/preview_helpers.py b/gajim/common/preview_helpers.py
index 310325811..1a39172b2 100644
--- a/gajim/common/preview_helpers.py
+++ b/gajim/common/preview_helpers.py
@@ -129,7 +129,7 @@ def extract_and_resize_frames(image: ImageFile.ImageFile,
new_frame.paste(image, (0, 0), image.convert('RGBA'))
# This method preservs aspect ratio
- new_frame.thumbnail(resize_to, Image.ANTIALIAS)
+ new_frame.thumbnail(resize_to, Image.Resampling.LANCZOS)
frames.append(new_frame)
i += 1
diff --git a/pyproject.toml b/pyproject.toml
index 1e29e229e..3beee4071 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -29,7 +29,7 @@ dependencies = [
"keyring",
"nbxmpp>=4.3.0,<5.0.0",
"packaging",
- "pillow",
+ "pillow>=9.1.0",
"precis-i18n>=1.0.0",
"cryptography>=3.4.8",
"pycairo>=1.16.0",