Dont preserve aspect ratio when loading an avatar
Clients should only upload square sized avatars
This commit is contained in:
parent
2a2217b80e
commit
553ba9e59f
|
@ -2403,8 +2403,8 @@ class Interface:
|
|||
pixbuf = None
|
||||
try:
|
||||
if size is not None:
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(
|
||||
path, size, size)
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||
path, size, size, False)
|
||||
else:
|
||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
|
||||
except GLib.GError as error:
|
||||
|
|
Loading…
Reference in New Issue