change size
This commit is contained in:
parent
2c11deb506
commit
039fbd12c4
@ -29,16 +29,16 @@ async def thumb(thumbnail, title, userid, ctitle):
|
|||||||
Image.alpha_composite(image5, image6).save(f"search/temp{userid}.png")
|
Image.alpha_composite(image5, image6).save(f"search/temp{userid}.png")
|
||||||
img = Image.open(f"search/temp{userid}.png")
|
img = Image.open(f"search/temp{userid}.png")
|
||||||
draw = ImageDraw.Draw(img)
|
draw = ImageDraw.Draw(img)
|
||||||
font = ImageFont.truetype("driver/source/regular.ttf", 52)
|
font = ImageFont.truetype("driver/source/regular.ttf", 50)
|
||||||
font2 = ImageFont.truetype("driver/source/medium.ttf", 76)
|
font2 = ImageFont.truetype("driver/source/medium.ttf", 72)
|
||||||
draw.text(
|
draw.text(
|
||||||
(25, 609),
|
(25, 615),
|
||||||
f"{title[:18]}...",
|
f"{title[:20]}...",
|
||||||
fill="black",
|
fill="black",
|
||||||
font=font2,
|
font=font2,
|
||||||
)
|
)
|
||||||
draw.text(
|
draw.text(
|
||||||
(27, 534),
|
(27, 543),
|
||||||
f"Playing on {ctitle[:12]}",
|
f"Playing on {ctitle[:12]}",
|
||||||
fill="black",
|
fill="black",
|
||||||
font=font,
|
font=font,
|
||||||
|
Loading…
Reference in New Issue
Block a user