this post was submitted on 25 Oct 2024
13 points (100.0% liked)

Lemmy

496 readers
3 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

founded 4 years ago
MODERATORS
 

Basically title. I can't send anything without compressing it a lot (to like 256 colors).

top 5 comments
sorted by: hot top controversial new old
[–] MentalEdge@sopuli.xyz 31 points 3 weeks ago* (last edited 3 weeks ago)

It doesn't.

The limit is set by the people hosting your specific instance, as they're the ones who then have to host that image.

Different instances have different limits.

You can use other image hosts, tho, as long as they give you a direct image link. Just plop it into the url field/use it in a markdown image, instead of uploading to lemmy.

[–] nichtburningturtle@feddit.org 6 points 3 weeks ago

Your admins define the size limit.

[–] sabreW4K3@lazysoci.al 6 points 3 weeks ago

It's instance dependent.

[–] flamingos@feddit.uk 4 points 3 weeks ago

.ml is running the beta branch that actually started to apply image size limits to thumbnails, your app is probably using the thumbnail URL instead of the main URL and thus getting the compressed image.

[–] ChaoticNeutralCzech@feddit.org 4 points 3 weeks ago* (last edited 3 weeks ago)

What kind of image is it? Reducing the number of colors in a PNG is usually inferior to JPEG compression. It can be OK for screenshots of texts and simple drawing but otherwise you're better off with lossy JPEG or WebP.

Some instance admins don't even use the built-in pict-rs server so media cannot be uploaded natively at all.

Some only allow month-old accounts to post images up to 500 kiB.

Others leave the limits on the relatively high defaults: 10 MiB per file and up to 900 frames for soundless animation/video, which must be in WebM format and VP9 codec (or it will need to be reencoded, which usually fails because of the short timeout). It's easy to use ffmpeg or HandBrake to create low-bitrate 30-second HD videos that fit but the limits are not visible to users and even the defaults are nowhere to be found in Lemmy documentation, I had to read the source code.