padma poster should not fail without timeline
This commit is contained in:
parent
36ce63477b
commit
54fdbe7f2c
1 changed files with 6 additions and 5 deletions
|
@ -30,6 +30,7 @@ def render_poster(id, title, frame, timeline, poster):
|
|||
# timeline
|
||||
timeline_height = 64
|
||||
timeline_lines = 16
|
||||
if timeline:
|
||||
timeline_image = Image.open(timeline)
|
||||
timeline_image = timeline_image.resize((10240, timeline_height), Image.ANTIALIAS)
|
||||
for i in range(timeline_lines):
|
||||
|
|
Loading…
Reference in a new issue