Update minimum Pillow requirement to 7.0.0

- Includes fix for security issue CVE-2019-16865 before 6.2.0
- Default rescale algorithm is now bilinear, or nearest for palette
  images. No need to pass lanczos on our own.
This commit is contained in:
miruka 2020-03-21 18:56:47 -04:00
parent fccc3ab8c4
commit 2dd275c618
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Pillow >= 5.4.1, < 6
Pillow >= 7.0.0, < 8
pymediainfo >= 4.1, < 5
cairosvg >= 2.4.2, < 3
aiofiles >= 0.4.0, < 0.5

View File

@ -889,7 +889,7 @@ class MatrixClient(nio.AsyncClient):
raise UneededThumbnail()
if not small:
thumb.thumbnail((800, 600), PILImage.LANCZOS)
thumb.thumbnail((800, 600))
with io.BytesIO() as out:
if thumb.mode in png_modes: