From 3dbc336842bbca970ad4a033cd602a1481f7efbd Mon Sep 17 00:00:00 2001 From: "l.gabrysiak" Date: Sun, 2 Mar 2025 16:45:16 +0100 Subject: [PATCH] mod letter --- backend/open_webui/models/users.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/models/users.py b/backend/open_webui/models/users.py index 7fab742..8e3a96f 100644 --- a/backend/open_webui/models/users.py +++ b/backend/open_webui/models/users.py @@ -395,8 +395,11 @@ class UsersTable: bbox = font.getbbox(letter) text_width = bbox[2] - bbox[0] + text_hight = bbox[3] - bbox[1] x = (size[0] - text_width) // 2 - y = (size[1] - bbox[1]) #// 2 # Poprawione obliczenie pozycji y + y = (size[1] - bbox[1]) // 2 # Poprawione obliczenie pozycji y + print(y) + print(text_hight) draw.text((x, y), letter, font=font, fill=text_color) buffered = io.BytesIO()