Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contentcuration/contentcuration/utils/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_thumbnail_encoding(filename, dimension=THUMBNAIL_WIDTH):
# aspect ratio. So a square image will remain square rather
# than being distorted to a 16:9 aspect ratio. This removes
# the need to make any changes like cropping the image.
image.thumbnail(thumbnail_size, Image.ANTIALIAS)
image.thumbnail(thumbnail_size, Image.LANCZOS)

image.save(outbuffer, image_format)
return "data:image/{};base64,{}".format(ext[1:], base64.b64encode(outbuffer.getvalue()).decode('utf-8'))
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ future
sentry-sdk
django-bulk-update
html5lib==1.1
pillow==9.4.0
pillow==10.2.0
python-dateutil>=2.8.1
jsonschema>=3.2.0
importlib-metadata==1.7.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ packaging==20.9
# google-cloud-kms
pathlib==1.0.1
# via -r requirements.in
pillow==9.4.0
pillow==10.2.0
# via -r requirements.in
prometheus-client==0.10.1
# via django-prometheus
Expand Down