Skip to content

Commit

Permalink
Reduce AvatarRenderedSizeFactor to 3
Browse files Browse the repository at this point in the history
Save a bit of bandwidth by only requesting 3-times the rendered avatar
size. Factor 4 is only really beneficial on a handful of mobile phones
and I don't think they are the primary device we design for.

Fixes: #17422
Fixes: #16287
  • Loading branch information
silverwind committed Dec 10, 2021
1 parent 3ca5dc7 commit 59d80d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/avatars/avatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
const DefaultAvatarPixelSize = 28

// AvatarRenderedSizeFactor is the factor by which the default size is increased for finer rendering
const AvatarRenderedSizeFactor = 4
const AvatarRenderedSizeFactor = 3

// EmailHash represents a pre-generated hash map (mainly used by LibravatarURL, it queries email server's DNS records)
type EmailHash struct {
Expand Down

0 comments on commit 59d80d0

Please sign in to comment.