why does the poster image of c/linux have 3.8mb?

juli@programming.dev to Linux@lemmy.ml – 0 points –
programming.dev

This is the link to the image. It has 3.8mb. In my opinion that is way too much.

30

You are viewing a single comment

It's 5120 px wide. Is this necessary?

it's not. the lemmy-ui max width for the poster element is far smaller than that (1104x960). in fact, the poster element is set to be a near-square (displays as rectangular in web and mobile web on the page header), as it also displays in the sidebar and in mobile apps as a square if the image is. most mods simply assume it's a rectangle and upload a rectangular image.

this image is made to be the largest usable resolution lemmy can display as a community poster and optimized to be very small in file size. see on https://lemm.ee/c/plex

That's a question for a web developer, which I am not. I would expect it to be the max common resolution width. A quick Google shows that modern ultrawides are 5120x1440. So that's probably why.

I'm a web developer.

Lemmy does not use the entire screen width. The way it has been embedded in the page means that image takes up only 850 pixels of horizontal space so it could be 5x smaller and no one would be able to see the difference.

Lemmy really should be automatically resizing the images (on the server) when they are uploaded, not every single time the community is viewed (in the browser).

So if you are not a cook, you can't answer questions about food taste?