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
|
pixbuf = None
|
||||||
try:
|
try:
|
||||||
if size is not None:
|
if size is not None:
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size(
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
|
||||||
path, size, size)
|
path, size, size, False)
|
||||||
else:
|
else:
|
||||||
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
|
pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
|
||||||
except GLib.GError as error:
|
except GLib.GError as error:
|
||||||
|
|
Loading…
Reference in New Issue