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

@@ -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: