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