Why YSK: If you want to make Lemmy a more accessible place for all, you need to know how to add labels (aka: “alt text”) to embedded images

As many of you are already aware, you can embed images in comments using the following markdown: ![](https://example.com/image.jpg).

That works, but the image will be left unlabeled which leaves screenreader users out of the conversation. This may seem like a theoretical problem, but it’s not – Lemmy already has an active blind community: https://rblind.com/

So, here’s what you can do to add labels when embedding images:

![Earth viewed from the Moon](https://example.com/image.jpg)

That’s it! Any text within the [] becomes “alt text”, which is what screenreaders use for describing images. It’s a small thing, but it makes a world of difference.

Remember: Reddit took something from many of us here. For some, it was a mobile app. For others, it was the ability to operate their own communities. Comment with solidarity; use alt-text.

  • @[email protected]OP
    link
    fedilink
    English
    641 year ago

    A soldier in the film Starship Troopers speaks directly to the viewer: "I'm doing my part!"

    ![A soldier in the film Starship Troopers speaks directly to the viewer: "I'm doing my part!"](https://i.kym-cdn.com/photos/images/newsfeed/002/182/171/eb0.jpg)

        • @[email protected]
          link
          fedilink
          English
          131 year ago

          The text isn’t supposed to show up. It’s alternative text for viewers that can’t see the image (or otherwise need it described).

          In web browsers, you often can long press the see alt or title text, though. As an aside, title text is kinda similar to alt text, but shows up on hover in desktop (on mobile, it’s also long press). It’s not meant for accessibility and not usually friendly for it. It’s usually for supplementary information and not to describe the image. Eg, an acronym might have title text that defines what the acronym stands for.

    • @[email protected]OP
      link
      fedilink
      English
      71 year ago

      Unrelated question, but are you a Stormlight Archive reader? I ask because of your username lol

      • @[email protected]
        link
        fedilink
        English
        7
        edit-2
        1 year ago

        YES! But please don’t spoil. I am on the 4th book, Rythm of War, for many months now… I have read 50% but it just goes so slowly… The first and second book, The Way of Kings and Words of Radiance, are my favorite books ever. Wit is one of my favourite characters, just so quick and witty and mysterious…

      • @[email protected]
        link
        fedilink
        English
        21 year ago

        I just finished rereading way of kings Friday and am reading SP3 right now! Hello fellow sanderfan

  • @[email protected]
    link
    fedilink
    English
    231 year ago

    Someone called me out on this yesterday. On a thread about rblind, so deservedly so. I had no idea this is how it works though. Thanks!

    • Samuel Proulx
      link
      fedilink
      English
      211 year ago

      That was me, and my bad. As a blind person myself, I’ve never tried to post an image. I knew including alt text was possible, but I didn’t realize the method was undocumented, and Lemmy doesn’t prompt for it. If I had, I would have offered help, not just snark.

  • @[email protected]
    link
    fedilink
    English
    191 year ago

    Lemmy should do it similar to how I have seen this done on Mastodon. When you upload an image an overlay shows up to remind the user to describe the image before submitting. The typical user is not going to remember to do this.

  • Speckle
    link
    fedilink
    English
    101 year ago

    This is really interesting and good to know, thank you for sharing. I’m going to try and remember this for all my images going forward.

    For posts that are image based does the OP need to describe them or is that covered somehow already by screen readers?

    • @[email protected]OP
      link
      fedilink
      English
      101 year ago

      Excellent question. For image-based posts, there is currently no mechanism to directly embed alt-text. This is likely to change in the future, however, so subscribe to lemmy#1086 for updates.

      For now, the general advice is to use the post body to describe the linked image (on Lemmy, all posts are allowed to have “self-post”-like text). This would work by linking the image directly as usual and also embedding the same image in the post text with alt-text included there.

    • ShittyKopper [they/them]
      link
      fedilink
      English
      3
      edit-2
      1 year ago

      There are no descriptions for image posts. You can however make a post that is both an image and text post at the same time, and throw the description there, until a proper way to put alt text gets implemented.

      • 70ms
        link
        fedilink
        English
        21 year ago

        Any tips for a sighted person on what makes for a good and useful description?

        • ShittyKopper [they/them]
          link
          fedilink
          English
          01 year ago

          I’m sighted (or, rather, sighted enough that glasses work) as well so I’m not the best person to answer this question.

          • 70ms
            link
            fedilink
            English
            21 year ago

            Hopefully someone will come along and answer. Thanks. :)

        • Altair
          link
          fedilink
          English
          51 year ago

          Connect and Liftoff are better than Jerboa atm, try those

          • @RandomWords
            link
            English
            21 year ago

            I’m not getting the alt text in Connect, is there an option not enabled by default or something?

          • @[email protected]
            link
            fedilink
            English
            11 year ago

            I tried liftoff and found it was hard to browse compared to jerboa. At least on dark mode. All the test being white and not visually distinct makes it less comfortable to browse than jerboa.

            I’ll have to try connect though

      • @[email protected]
        link
        fedilink
        English
        41 year ago

        Sweet, I can actually read the alt text by long-pressing the image. This opens up a whole new avenue for good caption gags.

  • Altair
    link
    fedilink
    English
    71 year ago

    Great YSK! Definitely doing this from now!

  • trouser_mouse
    link
    fedilink
    English
    41 year ago

    This is wonderful advice, it should be in all introduction material.

    • @[email protected]
      link
      fedilink
      English
      91 year ago

      You can click the little image button when commenting or posting, but it uploads it to the instance you’re on, which costs them space, so it’s probably limited in most instances

      • mintiefresh
        link
        fedilink
        English
        41 year ago

        And then is there a way to add alt text to that uploaded image?

        • @[email protected]
          link
          fedilink
          English
          51 year ago

          Yes, when I tried it just now it uploaded the picture and put the same text into the comment that you need to link external images ![alt text](link) it just had a link for the newly uploaded photo.

  • Drunemeton
    link
    fedilink
    English
    41 year ago

    Great advice! It’s pretty easy to just double paste the URL into both spots.

    • @[email protected]OP
      link
      fedilink
      English
      81 year ago

      Indeed, but just FYI: doing this is actually even worse than leaving a completely empty alt-text!

      Why? Because some browsers have experimental support for AI-generated alt-text. If an image has no alt-text, it’ll try to generate one, but only if the alt text is empty. This feature will probably become more common in the future, so please try to refrain from putting non-descriptive stuff in the alt-text area.

  • @[email protected]
    link
    fedilink
    English
    211 months ago

    This message is officially approved by RBlind. Thank you.

    You are all making the open web a better place.

  • BrikoX
    link
    fedilink
    English
    2
    edit-2
    1 year ago

    You can also copy and paste the image with Ctrl+C/Ctrl+V directly into the post or comment. Then the only think left is adding the alt text.