Save photos as progressive when uploading (#4089)

This commit is contained in:
Nick80835 2023-04-13 14:11:52 -04:00 committed by GitHub
parent d419979406
commit 7b1b33f805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ def _resize_photo_if_needed(
result.paste(image, mask=image.split()[alpha_index]) result.paste(image, mask=image.split()[alpha_index])
buffer = io.BytesIO() buffer = io.BytesIO()
result.save(buffer, 'JPEG', **kwargs) result.save(buffer, 'JPEG', progressive=True, **kwargs)
buffer.seek(0) buffer.seek(0)
return buffer return buffer

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440. # Versions should comply with PEP440.
# This line is parsed in setup.py: # This line is parsed in setup.py:
__version__ = '1.28.3' __version__ = '1.28.4'