Image.ANTIALIAS->Image.LANCZOS
This commit is contained in:
parent
eee51e672c
commit
cbaeffde68
10 changed files with 26 additions and 25 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue