fix poster
This commit is contained in:
parent
29eae5b25d
commit
75677ea07e
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ def render_poster(data, poster):
|
|||
poster_width = 640
|
||||
poster_height = 1024
|
||||
poster_ratio = poster_width / poster_height
|
||||
poster_color = (255, 255, 0)
|
||||
poster_color = (255, 0, 0)
|
||||
poster_image = Image.new('RGB', (poster_width, poster_height))
|
||||
font_file = os.path.join(static_root, 'DejaVuSansCondensedBold.ttf')
|
||||
font_size = 48
|
||||
|
@ -45,7 +45,7 @@ def render_poster(data, poster):
|
|||
poster_image.paste(line_image, (0, i * timeline_height))
|
||||
|
||||
# id
|
||||
text = 'Bak.ma/' + id
|
||||
text = 'bak.ma/' + id
|
||||
text_image = Image.new('RGB', (1, 1))
|
||||
text_size = drawText(text_image, (0, 0), text, font_file, font_size, poster_color)
|
||||
text_width = poster_width
|
||||
|
|
Loading…
Reference in a new issue