Stop Lemmy from mirroring link images
Stop Lemmy from mirroring link images
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
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?
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