Use pil lanczos.
This commit is contained in:
parent
c159dbbc0f
commit
802aae644f
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ def generate_image_thumbnail(filepath, width, height) -> PIL.Image:
|
||||||
only_shrink=True,
|
only_shrink=True,
|
||||||
)
|
)
|
||||||
if (new_width, new_height) != (image_width, image_height):
|
if (new_width, new_height) != (image_width, image_height):
|
||||||
image = image.resize((new_width, new_height))
|
image = image.resize((new_width, new_height), PIL.Image.LANCZOS)
|
||||||
|
|
||||||
if image.mode == 'RGBA':
|
if image.mode == 'RGBA':
|
||||||
background = imagetools.checkerboard_image(
|
background = imagetools.checkerboard_image(
|
||||||
|
|
Loading…
Reference in a new issue