mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-03-16 22:20:30 +00:00
Compatibility change for Pillow 10.0.0
This commit is contained in:
parent
8fa396f5b0
commit
347fa02eac
4 changed files with 6 additions and 3 deletions
|
|
@ -1,5 +1,8 @@
|
|||
Changelog
|
||||
=========
|
||||
* Unreleased
|
||||
* Use ``Image.Resampling.LANCZOS`` instead of ``Image.LANCZOS`` that was removed in Pillow 10.0.0
|
||||
|
||||
* 7.1.1 (February 23, 2023)
|
||||
* Switch to setuptools for building
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ from PIL import Image
|
|||
|
||||
class AvatarConf(AppConf):
|
||||
DEFAULT_SIZE = 80
|
||||
RESIZE_METHOD = Image.LANCZOS
|
||||
RESIZE_METHOD = Image.Resampling.LANCZOS
|
||||
STORAGE_DIR = "avatars"
|
||||
PATH_HANDLER = "avatar.models.avatar_path_handler"
|
||||
GRAVATAR_BASE_URL = "https://www.gravatar.com/avatar/"
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ appear on the site. Listed below are those settings:
|
|||
.. py:data:: AVATAR_RESIZE_METHOD
|
||||
|
||||
The method to use when resizing images, based on the options available in
|
||||
Pillow. Defaults to ``Image.LANCZOS``.
|
||||
Pillow. Defaults to ``Image.Resampling.LANCZOS``.
|
||||
|
||||
.. py:data:: AVATAR_STORAGE_DIR
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
Pillow>=8.4.0
|
||||
Pillow>=9.3.0
|
||||
django-appconf>=1.0.5
|
||||
dnspython>=2.3.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue