Mastodon: Notifications should have a hard limit on the image size

Created on 9 Apr 2018  路  6Comments  路  Source: tootsuite/mastodon

The avatar size in Mastodon is a configurable option, right? So it's a sensible choice for the admin of an instance to set avatars to 600x600 (because retina 300x300).

Only when an user with a non-Retina display gets a notification from this instance, the push notification would have a 600x600 image illustrating one-two lines of a toot. Which is not sensible at all.

So my proposal is to limit the avatar size in web notifications. Unlike the page styling, the notification styling is hardcoded, so it should have hard-coded sizes.

This is a very serious issue because the user has no control over notification size.


  • [x] I searched or browsed the repo鈥檚 other issues to ensure this is not a duplicate.
bug

Most helpful comment

I'm not sure what notification system and window manager @Oreolek is using, but I experience the same issue with awesomewm (screenshot at https://mastodon.social/@msoucy/99832271806915544). I can file an issue with awesomewm, but it might require a more permanent workaround where Mastodon stores the downsized avatar and sends that.


A workaround for awesomewm is to add:

naughty.config.defaults.icon_size = 96 -- Chosen icon size

All 6 comments

I don't know what you mean.

The avatar size isn't a configurable option. Is your problem that your web notifications get scaled to the size of the image and as such are big for small messages?

I can't reproduce this.

The notification sender's avatar is set as the notification's icon and should be scaled down to an appropriate size by your platform's notification system (as opposed to image, which tends to be larger if it is displayed). If it doesn't then that's a bug with your platform's notification system, not with mastodon.

I'm not sure what notification system and window manager @Oreolek is using, but I experience the same issue with awesomewm (screenshot at https://mastodon.social/@msoucy/99832271806915544). I can file an issue with awesomewm, but it might require a more permanent workaround where Mastodon stores the downsized avatar and sends that.


A workaround for awesomewm is to add:

naughty.config.defaults.icon_size = 96 -- Chosen icon size

I don't really think that this is a problem for a website since they have no idea how big you want your notifications to be.

For example I want my notifications on my desktop pc to be 250x100px while I want them to be a different since on my laptop.

If we'd ask each website to set a specific notification size then we'd need to change it for every website manually in a config option which is really not a good option.

Therefore I'd suggest that this is a "problem" of the notification daemon and a max-width/height needs to be set there instead.

I don't think there is anything we can do on our end, the bug should be raised with the OS you are using

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lauramichet picture lauramichet  路  3Comments

almafeta picture almafeta  路  3Comments

golbette picture golbette  路  3Comments

hidrarga picture hidrarga  路  3Comments

sorin-davidoi picture sorin-davidoi  路  3Comments