0001-misc-use-LANCZOS-instead-of-PIL.Image.Antialias-7063.patch
src/authentic2/forms/fields.py | ||
---|---|---|
147 | 147 |
box[3] += box[1] |
148 | 148 | |
149 | 149 |
image = image.crop(box) |
150 |
return image.resize([width, height], PIL.Image.ANTIALIAS)
|
|
150 |
return image.resize([width, height], PIL.Image.LANCZOS)
|
|
151 | 151 | |
152 | 152 | |
153 | 153 |
class ValidatedEmailField(EmailField): |
tox.ini | ||
---|---|---|
52 | 52 |
buster: django<2.3 |
53 | 53 |
buster: django-model-utils<4 |
54 | 54 |
buster: django-select2>=5,<6 |
55 |
# impossible to compile old version of pillow on recent debian :/ or to install |
|
56 |
# python3.6, the version of python on buster |
|
57 |
# buster: pillow==5.4.1 |
|
55 | 58 |
bullseye: django<2.3 |
56 | 59 |
bullseye: django-model-utils<4 |
57 | 60 |
bullseye: django-select2>=5,<6 |
61 |
bullseye: pillow==8.1.2 |
|
58 | 62 |
stable-backports: django>=3.2.12,<3.3 |
59 | 63 |
stable-backports: django-model-utils>=4.2,<4.3 |
60 | 64 |
stable-backports: django-select2>=7.7,<7.8 |
... | ... | |
172 | 176 |
filterwarnings = |
173 | 177 |
ignore |
174 | 178 |
once:::authentic2.* |
179 |
error:.*ANTIALIAS is deprecated and will be removed in Pillow 10:: |
|
175 | 180 |
junit_family=xunit2 |
176 | 181 | |
177 | 182 |
[coverage:run] |
178 |
- |