Use pil lanczos.
This commit is contained in:
parent
2c56cd4515
commit
aa15e285fd
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ def make_thumbnail(photo):
|
|||
image = PIL.Image.open(photo.absolute_path)
|
||||
(image_width, image_height) = image.size
|
||||
(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)
|
||||
print(small_name)
|
||||
return small_name
|
||||
|
|
Loading…
Reference in a new issue