• paol@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    11 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@lemmy.world
      link
      fedilink
      English
      arrow-up
      10
      ·
      11 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!

        • Murdo Maclachlan@lemmy.world
          link
          fedilink
          English
          arrow-up
          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.

    • d_k_bo@feddit.de
      link
      fedilink
      arrow-up
      2
      ·
      11 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>