Open 1earch opened 4 years ago
I've not seen this. Is the 96x96 file restriction documented somewhere, or is this a problem with Mugshot itself?
@1earch Just following up here... do you have a link to this documented requirement?
Hi @bluesabre,
Sorry for the delay! Totally missed out the last notification! I haven't seen any documentation around this point...
Here are the steps to reproduce, in order to see AccountsService error:
/tmp/
filepath for the user$ dbus-send --system --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.Accounts.User.SetIconFile string:/tmp/...
Error org.freedesktop.Accounts.Error.Failed: file '/tmp/...' is too large to be used as an icon
Just found the limitation here: https://github.com/freedesktop/accountsservice/blob/0247dd0359df854768c21e6d5a49d35d6be563ae/src/user.c#L1784
There is an artificial limit of 1MB
I also found this thread, indicating that the bug was fixed, but I still get it with 0.4.3
Hello,
When selecting a custom avatar larger than 96x96, it is not applied on behalf of AccountsService. Would it be possible to add a warning message? In addition, it could be great that the script performs an automatic resize after warning the user.
I can work on a PR if needed... In this case, do you have a preference on the image manipulation lib?