I think maybe someone should submit a bug to the creators of the forum software.
I have been looking yes but discourse wants to cache the image and has been denied access by its own rules. So gravatar can’t work because the cached image is the same as your old avatar. If we somehow ignore the no images allowed rule we would be in the same situation as before anyway. I’m not sure this can be solved.
Maybe it should be relying on gravatars cache instead. I don’t know how gravatar would feel about that as a general rule over the discourse base.
We want free energy. It’s a tricky one.
So, to summarize: “Old” members of the forum won’t be able to change their profile picture forever?
I’m going to say no because I don’t think it’s an acceptable conclusion. It is a bug per-se. I can’t submit a bug report without an acceptable solution or in depth review of the problem, though.
The rules state no images allowed. We do not want images. We have no room. But we want avatars. I’m quite certain we can’t just pull it from gravatar because every American morning their servers will die from avatar cache requests. We should cache them ourselves. The traffic then becomes balanced. Thats how it should be.
We need more room, really… I’m struggling for a solution right now.
It’s stupid that the forum won’t let us cache gravatar images because we don’t let users upload stuff.
Can we just remove the upload capability through the user interface and then turn image uploads back on?
that would solve two problems, actually.
- it means users could change their avatars
- it means people stop complaining about uploads failing… since they won’t be able to try in the first place.
Gonna check that.
The problem is that if the image upload endpoint is open then an image can be uploaded. The only difference from avatar to background to attachment is the GUI provided. The id/ref is stored and called. There is no way to differentiate between the purposes of them.
there is a “sso overrides avatar” which will use the user’s sso avatar from the logging payload… meaning that if a user logs in with his google/facebook/github login he’ll have the avatar from this website…
Won’t solve the issue for the users that have a jme discourse user account though…
I know of 2 forums that do use gravatar directly and it doesn’t seem to be that big of a problem. (ftb forum and powdertoy forums)
The ftb forum is using Xenforo, so unless the gravatar thing is custom I would suspect that there are a lot more sites directly using gravatar, and so far I never saw a problem on that forum caused by that.
Let Gravatar worry about their end and just directly link the images - problem solved, 5 minute job.
As a whole - modifying the discourse base - it isn’t ideal - and very doubtful that it would be an accepted proposition.
Seems the recommended way is to do this
tl;dr : allow uploads, but set the max image dimension to 128 x 128…
Works out at about 50,000 avatars per GB. Good enough
That’s totally dumb…
You actually can’t set this limit.
Only limit you have is limiting the thumbnail size, which we really don’t care, or limiting the file size in kb.
ok…limited the file size to 50kb… we’ll see.
Please check if it fixes the avatar thingy
Trying to upload 20 kb profile jpeg image → fails with error “limit is 50 kb”.
Trying to switch to Gravatar which correctly displays my image on the Gravatar site → getting a default generated “character image”, not the Gravatar image.
Fail on both accounts
yeah that works
Gravatar doesn’t seem to work for me, but uploading a picture does.
That will be good enough then…
I get the same error as @Pilvinen even though I tried to upload a picture with about 30 KB.