this post was submitted on 01 Feb 2025
16 points (94.4% liked)

Lemmy Support

4809 readers
9 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

By default Lemmy seems to be mirroring every link's preview image. Even when that link was originally posted on an external Lemmy instance. That can put quite a strain on small servers. Is there a way to disable this? Ideally I would have pict-rs just be used to host the images my users upload and nothing else.

Solved:

Add

  pictrs: {
    image_mode: "None"
  }

to lemmy.hjson.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 2 months ago (2 children)
[–] [email protected] 3 points 2 months ago (1 children)

Great! Thanks!

Now I just have to somehow prune the old images...

[–] [email protected] 3 points 2 months ago (1 children)

I think there's a guide for that somewhere? Maybe I can try looking for it tomorrow if no one else finds it first. I think the admin control panel that shows uploaded images might also show the federated ones?

[–] [email protected] 2 points 2 months ago (1 children)

Maybe pictrs does it by itself. It's still working like crazy after I did the change without any user-uploads happening.

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

this might help https://monero.town/post/2020876

I guess you could call GET /internal/hashes?{query} to see all the images

[–] [email protected] 1 points 2 months ago (1 children)

is the default thumbnails?

[–] [email protected] 2 points 2 months ago

the default appears to be StoreLinkPreviews in v0.19.8

https://github.com/LemmyNet/lemmy/blob/0.19.8/crates/utils/src/settings/structs.rs#L85-L88

but in the main branch it's ProxyAllImages, so I guess that'll be for a future release

https://github.com/LemmyNet/lemmy/blob/main/crates/utils/src/settings/structs.rs#L74-L77

[–] [email protected] 4 points 2 months ago (1 children)

There was a post on [email protected] recently about pictures management, maybe that can help

[–] [email protected] 2 points 2 months ago (1 children)

For anyone curious, I think that is the post: https://lemm.ee/post/53212164

[–] [email protected] 3 points 2 months ago

Indeed, thanks!