this post was submitted on 03 Jul 2023
181 points (90.2% liked)

Solarpunk

5327 readers
11 users here now

The space to discuss Solarpunk itself and Solarpunk related stuff that doesn't fit elsewhere.

What is Solarpunk?

Join our chat: Movim or XMPP client.

founded 2 years ago
MODERATORS
 

Wanting to add high value content to this community consistently to keep it alive and interesting for new subscribers. Am excited for the future of this Lemmy community

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, images from other Lemmy instances are currently not cached. Image caching in Lemmy a bit of a complex mess that makes it hard to understand when a image is cached on the local instance or not.

Edit: basically what happens is: If you upload an image directly this local link will be shared to other instances and they will show it like in this post. The image upload host is always your home instance, so even when posting to a remote community your home instance will host the image.

But it you link to an external image host like imgur, then the home instance will pull a local copy in its cache and show that. However it federates the original link to imgur and not the local cached link, thus on other instances the picture will be loaded from imgur.

I think the latter part is an unintended side-effect of an incomplete caching implementation in Pict-rs / Lemmy.

[–] [email protected] 1 points 1 year ago (1 children)

Thanks for the explanation.

Do you have any advice on how to post images? I'd like to be mindful of hosting costs. Is sharing a link to Google photos better than downloading and uploading, for instance?

[–] [email protected] 1 points 1 year ago (1 children)

For now uploading them here is no problem. If you want you can scale down the image a bit, but I'll probably do that automatically on the server soon.

The entire image hosting situation is not very satisfactory on Lemmy in general right now, so I expect there to be some bigger changes in the backend anyway. Thus not much point optimizing it right now.

[–] [email protected] 1 points 1 year ago (1 children)

Thanks, that's good to know.

Separately, though, it's certainly easier to copy and paste URLs than download and upload. Does linking to images on the web work, if I find it more convenient?

[–] [email protected] 1 points 1 year ago (1 children)

Sure, you do you. Just depending on the link people from other instances might not be able to access it.

[–] [email protected] 1 points 1 year ago (1 children)

Okay, though I don't want to post in a way that makes it inaccessible to anyone. When you say that depending on the link, people from other instances might not be able to access it, what does that depend on?

If for the moment I'm only talking about files hosted on reddit, do you know if I copy and paste the URL for the content itself whether people on other instances will see the image naively as though I'd downloaded it and uploaded it?

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

For external links it is impossible to say what rate limits and other deeplinking protections are deployed. Obviously Reddit does not want people to use their servers for hosting images on external websites. So it might look fine to you, but other people that try to access the image URL the fist time are blocked.

Right now Lemmy seems to cache external images only for local users, if you access through a remote instance you will get the original external link.

[–] [email protected] 1 points 1 year ago

Alright. It seems like I should upload images of I want to ensure their visibility. I'll keep testing things and learning. Thanks for the explanation.