setup
This commit is contained in:
parent
76d4bfeec1
commit
9ce96cff56
@ -21,7 +21,7 @@ async def thumb(thumbnail, title, userid, ctitle):
|
||||
await f.write(await resp.read())
|
||||
await f.close()
|
||||
image1 = Image.open(f"search/thumb{userid}.png")
|
||||
image2 = Image.open("driver/source/rrc.png")
|
||||
image2 = Image.open("driver/source/LightBlue.png")
|
||||
image3 = changeImageSize(1280, 720, image1)
|
||||
image4 = changeImageSize(1280, 720, image2)
|
||||
image5 = image3.convert("RGBA")
|
||||
@ -29,11 +29,11 @@ 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/Roboto-Light.ttf", 55)
|
||||
font2 = ImageFont.truetype("driver/source/finalfont.ttf", 65)
|
||||
font = ImageFont.truetype("driver/source/regular.ttf", 52)
|
||||
font2 = ImageFont.truetype("driver/source/medium.ttf", 76)
|
||||
draw.text(
|
||||
(20, 630),
|
||||
f"{title[:25]}...",
|
||||
f"{title[:18]}...",
|
||||
fill="White",
|
||||
stroke_width=1,
|
||||
stroke_fill="black",
|
||||
@ -41,7 +41,7 @@ async def thumb(thumbnail, title, userid, ctitle):
|
||||
)
|
||||
draw.text(
|
||||
(20, 550),
|
||||
f"Playing on {ctitle[:15]}...",
|
||||
f"Playing on {ctitle[:8]}...",
|
||||
fill="White",
|
||||
stroke_width=1,
|
||||
stroke_fill="black",
|
||||
|
Loading…
Reference in New Issue
Block a user