[BUG] Forum avatar can now only be 160 x 160px

Started by WillLem, November 23, 2024, 04:24:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WillLem

When attempting to change my avatar, I kept getting the "Session verification failed" error. I tried changing the picture format, but then realised that SMF now only allows a max size of 160 x 160px for avatars.

Can this limit be increased? I'm pretty sure the Forum previously allowed much larger images (for instance, my current avatar is 1500 x 1500px).

namida

Why do you need to upload a larger avatar? It's only displayed at around 160x160 (at most) anyway.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

WillLem

Quote from: namida on Today at 02:04:12 AMWhy do you need to upload a larger avatar?

I guess I can resize, but the scaling algorithms in paint.net are a bit rubbish. If you can recommend a good image resizer, I'll do that instead.

Silken Healer

#3
Quote from: WillLem on Today at 03:17:51 AMbut the scaling algorithms in paint.net are a bit rubbish
Can you elaborate on what you exactly don't like about them? As far as I'm aware they have all the most used ones bicubic, nearest neighbour, etc. (which I'd assume the forum/browser/HTML would use anyway even if you could upload a large image as your avatar)

WillLem

Quote from: Silken Healer on Today at 03:20:45 AMCan you elaborate on what you exactly don't like about them?

See the images in the QuickMod Tool topic. The text is barely readable, and that's taking a large (1500 x 800 ish) image and resizing it by 50% using the Adaptive (Sharp) algorithm; the others produce even fuzzier results. Maybe my expectations are high, but 1500p down to 750p should still look pretty good IMHO.

The avatar looks OK (if a bit small), that's 500p to 160p Nearest Neighbour. If the Forum allowed, say, 240 x 240px, that would be better.

Out of interest, what scaling algorithm does the Forum use to resize images?

Simon

Try the Lanczos algorithm.

If your tool doesn't offer that, consider Gimp (if you want a GUI) or ImageMagick (if you like the command line).

ImageMagick is common on webservers. I assume LF calls that. I don't know what exact arguments it passes; I'd have to investigate. But I'll only investigate after you've tried Lanczos and still don't like the results. :lix-evil:

People on Stack overflow suggest Lanczos. And: "Basically 'Lanczos' makes a great starting point for any sort of filter work" is from the ImageMagic docs.

-- Simon