Upgrade pillow (#33769)

* build: upgrading pillow.
This commit is contained in:
Awais Qureshi
2023-11-27 13:45:59 +05:00
committed by GitHub
parent 487b870ae4
commit 9998dc58fe
8 changed files with 8 additions and 8 deletions

View File

@@ -166,7 +166,7 @@ def _scale_image(image, side_length):
Given a PIL.Image object, get a resized copy with each side being
`side_length` pixels long. The scaled image will always be square.
"""
return image.resize((side_length, side_length), Image.ANTIALIAS)
return image.resize((side_length, side_length), Image.LANCZOS)
def _create_image_file(image, exif):

View File

@@ -96,7 +96,7 @@ drf-yasg<1.21.6
djangorestframework<3.15.0
# tests failing with greater version. Fix this in separate ticket.
pillow<10.0.0
pillow<10.1.0
# The version of django-stubs we can use depends on which Django release we're using
# 1.16.0 works with Django 3.2 through 4.1

View File

@@ -59,7 +59,7 @@ openedx-calc==3.0.1
# via -r requirements/edx-sandbox/py38.in
packaging==23.2
# via matplotlib
pillow==9.5.0
pillow==10.0.1
# via
# -c requirements/edx-sandbox/../constraints.txt
# matplotlib

View File

@@ -841,7 +841,7 @@ pgpy==0.6.0
# via edx-enterprise
piexif==1.1.3
# via -r requirements/edx/kernel.in
pillow==9.5.0
pillow==10.0.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/kernel.in

View File

@@ -1413,7 +1413,7 @@ piexif==1.1.3
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
pillow==9.5.0
pillow==10.0.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/doc.txt

View File

@@ -1008,7 +1008,7 @@ picobox==3.0.0
# via sphinxcontrib-openapi
piexif==1.1.3
# via -r requirements/edx/base.txt
pillow==9.5.0
pillow==10.0.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt

View File

@@ -1059,7 +1059,7 @@ pgpy==0.6.0
# edx-enterprise
piexif==1.1.3
# via -r requirements/edx/base.txt
pillow==9.5.0
pillow==10.0.1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt

View File

@@ -445,7 +445,7 @@ class ContentStore:
if not dimensions:
dimensions = (128, 128)
thumbnail_image.thumbnail(dimensions, Image.ANTIALIAS)
thumbnail_image.thumbnail(dimensions, Image.LANCZOS)
thumbnail_image.save(thumbnail_file, 'JPEG')
thumbnail_file.seek(0)