This commit is contained in:
CiscoTheWolf 2023-05-21 23:28:31 +02:00
commit 3c687f41b6

View file

@ -21,7 +21,7 @@ def pure_pil_alpha_to_color_v2(image, color=(0, 0, 0)):
background.paste(image, mask=image.split()[3]) # 3 is the alpha channel
return background
image = Image.open("../prootface.bmp")
image = Image.open("faces/prootface3.bmp")
image.thumbnail((128, 32), Image.ANTIALIAS)
RGBImage = pure_pil_alpha_to_color_v2(image)
@ -83,4 +83,4 @@ client.loop_start()
while True:
time.sleep(0.005)
time.sleep(0.005)