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

  • Andy@slrpnk.net
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Are you sure? When I hover over the words “lemmy.world” it shows the full URL destination for the link, and I can see that when I click on the image it’s hosted at “https://lemmy.world/pictrs/image/3a12d532-f0f4-4f90-9a66-406e746f5183.jpeg”.

    It really looks like it’s hosted on lemmy.world.

    Does anyone have any information (ideally at a very accessible level, possibly with a diagram) that explains where files are hosted and how they’re posted across non-local servers?

    • poVoq@slrpnk.netM
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      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.

      • Andy@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        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?

        • poVoq@slrpnk.netM
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          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.

          • Andy@slrpnk.net
            link
            fedilink
            arrow-up
            0
            ·
            1 year ago

            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?

            • poVoq@slrpnk.netM
              link
              fedilink
              arrow-up
              0
              ·
              1 year ago

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

              • Andy@slrpnk.net
                link
                fedilink
                arrow-up
                0
                ·
                1 year ago

                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?

                • poVoq@slrpnk.netM
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 year ago

                  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.

                  • Andy@slrpnk.net
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    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.