Update html_generator.py (#2954)
With version 10.0.0 of Pillow the constant Image.ANTIALIAS has been removed. Instead Image.LANCZOS should be used.
This commit is contained in:
parent
3c076c3c80
commit
847f70b694
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ def generate_4chan_html(f):
|
||||||
def make_thumbnail(image):
|
def make_thumbnail(image):
|
||||||
image = image.resize((350, round(image.size[1] / image.size[0] * 350)), Image.Resampling.LANCZOS)
|
image = image.resize((350, round(image.size[1] / image.size[0] * 350)), Image.Resampling.LANCZOS)
|
||||||
if image.size[1] > 470:
|
if image.size[1] > 470:
|
||||||
image = ImageOps.fit(image, (350, 470), Image.ANTIALIAS)
|
image = ImageOps.fit(image, (350, 470), Image.LANCZOS)
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue