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.
See the config.hjson for image_mode
https://github.com/LemmyNet/lemmy/blob/main/config/defaults.hjson#L25-L57
is the default thumbnails?
the default appears to be
StoreLinkPreviews
in v0.19.8https://github.com/LemmyNet/lemmy/blob/0.19.8/crates/utils/src/settings/structs.rs#L85-L88
but in the
main
branch it’sProxyAllImages
, so I guess that’ll be for a future releasehttps://github.com/LemmyNet/lemmy/blob/main/crates/utils/src/settings/structs.rs#L74-L77
Great! Thanks!
Now I just have to somehow prune the old images…
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?
Maybe pictrs does it by itself. It’s still working like crazy after I did the change without any user-uploads happening.
this might help https://monero.town/post/2020876
I guess you could call
GET /internal/hashes?{query}
to see all the images
There was a post on !fedigrow@lemm.ee recently about pictures management, maybe that can help
For anyone curious, I think that is the post: https://lemm.ee/post/53212164
Indeed, thanks!