From 039fbd12c4a54d144c0267d9bb2a796d3aeabe6f Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:57:42 +0700 Subject: [PATCH] change size --- driver/design/thumbnail.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/driver/design/thumbnail.py b/driver/design/thumbnail.py index 4ee67e1..33c5640 100644 --- a/driver/design/thumbnail.py +++ b/driver/design/thumbnail.py @@ -29,16 +29,16 @@ async def thumb(thumbnail, title, userid, ctitle): Image.alpha_composite(image5, image6).save(f"search/temp{userid}.png") img = Image.open(f"search/temp{userid}.png") draw = ImageDraw.Draw(img) - font = ImageFont.truetype("driver/source/regular.ttf", 52) - font2 = ImageFont.truetype("driver/source/medium.ttf", 76) + font = ImageFont.truetype("driver/source/regular.ttf", 50) + font2 = ImageFont.truetype("driver/source/medium.ttf", 72) draw.text( - (25, 609), - f"{title[:18]}...", + (25, 615), + f"{title[:20]}...", fill="black", font=font2, ) draw.text( - (27, 534), + (27, 543), f"Playing on {ctitle[:12]}", fill="black", font=font,