draw border around title and subtitle
This commit is contained in:
parent
7d87b428b1
commit
1ff60ed7b8
@ -14,8 +14,10 @@ def update_image(original, title, subtitle):
|
||||
font1 = ImageFont.truetype('tahomabd.ttf', 50)
|
||||
font2 = ImageFont.truetype('tahomabd.ttf', 38)
|
||||
draw = ImageDraw.Draw(image)
|
||||
draw.text((20,520), title, (255,255,255), font=font1)
|
||||
draw.text((20,588), subtitle, (255,255,255), font=font2)
|
||||
draw.text((20,520), title, font=font1, fill='white',
|
||||
stroke_width=4, stroke_fill='black', spacing=4)
|
||||
draw.text((20,588), subtitle, font=font2, fill='white',
|
||||
stroke_width=3, stroke_fill='black', spacing=4)
|
||||
return image
|
||||
|
||||
def update_thumbnail(image):
|
||||
|
Loading…
Reference in New Issue
Block a user