fix: Fixed an error with drawing dynamic avatars in live report

This commit is contained in:
LWR
2023-05-13 13:40:31 +08:00
parent f17eb3a09b
commit e447110246
+3 -1
View File
@@ -475,7 +475,9 @@ class LiveReportGenerator:
icon = icon.resize((icon_size, icon_size)) icon = icon.resize((icon_size, icon_size))
for i, x in enumerate(xs): for i, x in enumerate(xs):
line.draw_img_alpha(mask_round(faces[i].resize((face_size, face_size))), (x + face_padding, face_padding)) line.draw_img_alpha(
mask_round(faces[i].resize((face_size, face_size)).convert("RGBA")), (x + face_padding, face_padding)
)
if i != count - 1: if i != count - 1:
line.draw_img_alpha(icon, (x, 0)) line.draw_img_alpha(icon, (x, 0))
else: else: