Is it possible to put multiple pictures in one post?

  • NicoCharrua@lemmy.ca
    link
    fedilink
    arrow-up
    15
    ·
    1 year ago

    Yeah, just upload pictures in the post body. Like you do in comments you can do it in the post text as well.

    Image: Sign that says "Go Away! No Mushroom Hunting. Mine! They are ALL mine!

    Lemmy has a way of doing it automatically, but if you want to do it manually the formatting is

    ![Alt text](image url)
    
    • ChaoticNeutralCzech@feddit.de
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      You need to use a direct link to an image file, which usually ends in an extension like .png or .jpg. You may need to jump through hoops to get it on sites like Pinterest where a right-click and “Copy image link” doesn’t work (inspecting the element or network transfers usually does). Some image hosts (notably i.redd.it since 2023) don’t allow hotlinking/embedding from outside domains as per their CORS policy, in which case you get a result like this:

      Image from Reddit
      Image from gify.nou.cz

      It is impossible for a Lemmy web client to fix this without a browser extension but apps like Imgur Viewer can (and do) spoof the content-type and referrer HTTP request fields.

      Some clients (notably Boost) will automatically make any link into an embedded image if it contains a known image file extension, which is unhelpful if the link leads to a HTML page instead (such as https://commons.wikimedia.org/wiki/File:Macroglossum_stellatarum1_NR.jpg. Others refuse to load an image if its URL does not end in one of the known extensions (if the post URL doesn’t, a link post will have a "↗⃞” external link icon instead of an image) but you can usually trick it by appending ?. png or similar to the URL.

      • NicoCharrua@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Interesting. On my client (Eternity) both the picture from Reddit and the picture from gify.nou.cz load. On the Lemmy website only the Reddit image loads.

        • ChaoticNeutralCzech@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I can see it too. Maybe Lemmy has set up a proxy or Reddit lifted some of their restrictions. This did not work a week ago.

          Would have chosen a smaller image if I expected it to actually load…