Use pil lanczos.

This commit is contained in:
voussoir 2022-08-06 16:25:28 -07:00
parent 2c56cd4515
commit aa15e285fd
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -317,7 +317,7 @@ def make_thumbnail(photo):
image = PIL.Image.open(photo.absolute_path) image = PIL.Image.open(photo.absolute_path)
(image_width, image_height) = image.size (image_width, image_height) = image.size
(width, height) = imagetools.fit_into_bounds(image_width, image_height, 1440, 1440) (width, height) = imagetools.fit_into_bounds(image_width, image_height, 1440, 1440)
image = image.resize((width, height), PIL.Image.ANTIALIAS) image = image.resize((width, height), PIL.Image.LANCZOS)
image.save(small_name.absolute_path, quality=85) image.save(small_name.absolute_path, quality=85)
print(small_name) print(small_name)
return small_name return small_name