• paol
    cake
    link
    fedilink
    311 months ago

    Does Lemmy not support alt text? I can’t add alt text from Infinity for Lemmy; is that because Lemmy doesn’t support it or just my client? Because they really should.

    • Murdo Maclachlan
      link
      fedilink
      English
      1011 months ago

      As far as I’m aware, Lemmy unfortunately does not provide the option to add alt text to images. Hopefully that will change, though!

      • paol
        cake
        link
        fedilink
        211 months ago

        Oof that sucks. Thank you for answering :)

      • wanderingmagus
        link
        fedilink
        2
        edit-2
        11 months ago

        Really? So when I write ![alt text](image link), the alt text does nothing?

        • Murdo Maclachlan
          link
          fedilink
          English
          2
          edit-2
          11 months ago

          I didn’t know you could do that!

          From what I can see, this means you can add alt text to images you embed using markdown. However, directly uploaded images in posts don’t seem to have a way to directly add alt text that I can find. You can add a transcription in the text body, but it’s not quite as accessible as pure alt text because screen readers won’t read it automatically when the image gets focused.

          Possibly you could embed an image in the text body and upload that like a text post, and that way use the markdown to add the alt text, but that would require the image is already hosted somewhere in the internet.

    • @[email protected]
      link
      fedilink
      211 months ago

      It would be great if it had proper alt text. But since an image post can have an additional text body you can put an image description there. I guess it’s a good idea to wrap it in a spoiler/<details> element.

      Image description

      Gru…

      ::: spoiler Image description
      
      Gru…
      :::
      

      </details>