Browse Source

Fix unique avatar generation

rafalp 2 years ago
parent
commit
cf5cba3ccc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/users/avatars/dynamic.py

+ 1 - 1
misago/users/avatars/dynamic.py

@@ -70,7 +70,7 @@ def draw_avatar_flavour(user, image):
     font = ImageFont.truetype(FONT_FILE, size=size)
 
     text_box = font.getbbox(string)
-    text_pos = ((image_size - text_box[0]) / 2, (image_size - text_box[1]) / 2)
+    text_pos = ((image_size - text_box[2]) / 2, (image_size - text_box[3]) / 2)
 
     writer = ImageDraw.Draw(image)
     writer.text(text_pos, string, font=font)