Dont preserve aspect ratio when loading an avatar

Clients should only upload square sized avatars
This commit is contained in:
Philipp Hörist 2017-12-03 16:33:30 +01:00
parent 2a2217b80e
commit 553ba9e59f
1 changed files with 2 additions and 2 deletions

View File

@ -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: