Image.ANTIALIAS->Image.LANCZOS

This commit is contained in:
j 2023-08-24 23:39:54 +02:00
commit cbaeffde68
10 changed files with 26 additions and 25 deletions

View file

@ -33,7 +33,7 @@ def render_poster(data, poster):
timeline_lines = 16
if timeline:
timeline_image = Image.open(timeline)
timeline_image = timeline_image.resize((10240, timeline_height), Image.ANTIALIAS)
timeline_image = timeline_image.resize((10240, timeline_height), Image.LANCZOS)
for i in range(timeline_lines):
line_image = timeline_image.crop((i * poster_width, 0, (i + 1) * poster_width, 64))
poster_image.paste(line_image, (0, i * timeline_height))