this post was submitted on 01 Feb 2025
14 points (88.9% liked)

Lemmy Support

4711 readers
40 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 16 hours ago (1 children)

Great! Thanks!

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

[–] [email protected] 3 points 16 hours 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 16 hours 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 6 hours ago* (last edited 6 hours ago)

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

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