89
submitted 1 year ago* (last edited 1 year ago) by chaorace@lemmy.sdf.org to c/youshouldknow@lemmy.world

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.

top 33 comments
sorted by: hot top controversial new old
[-] raiun@lemmy.world 6 points 1 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.

[-] chaorace@lemmy.sdf.org 3 points 1 year ago

An excellent suggestion! I hope you don't mind, but I went ahead and created a feature request for this just now: lemmy-ui#1759

[-] chaorace@lemmy.sdf.org 4 points 1 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)

[-] lol@lemm.ee 2 points 1 year ago
[-] bonfire921@lemmy.dbzer0.com 2 points 1 year ago

Hmmm seems like the text doesn't show up on Jerboa

[-] CoderKat@lemm.ee 5 points 1 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.

[-] trouser_mouse@lemmy.world 4 points 1 year ago

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

[-] Elektrotechnik@lemmy.world 3 points 1 year ago

Very nice, thanks for the write up!

[-] rbhfd@lemmy.world 3 points 1 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!

[-] fastfinge@rblind.com 3 points 1 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.

[-] rbhfd@lemmy.world 2 points 1 year ago

No worries! I never really considered blind people browsing apps, I only became aware of the technical details since the API changes at reddit, so it's still far from a reflex to think about.

Thanks for pointing it out though.

[-] rbhfd@lemmy.world 1 points 1 year ago

Follow up: did I do it correctly here?

https://lemmy.world/comment/766594

[-] Pillarist@lemmy.world 2 points 1 year ago

I wish you could post gifs this way.

[-] OtakuAltair@vlemmy.net 4 points 1 year ago* (last edited 1 year ago)
[-] CeruleanRuin@lemmy.one 4 points 1 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.

[-] dom@lemmy.ca 2 points 1 year ago

It doesn't play for me in jerboa

[-] OtakuAltair@vlemmy.net 3 points 1 year ago

Connect and Liftoff are better than Jerboa atm, try those

[-] RandomWords@programming.dev 2 points 1 year ago

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

[-] dom@lemmy.ca 1 points 1 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

[-] Lulu@sh.itjust.works 1 points 1 year ago

description is accurate👍

[-] Pillarist@lemmy.world 1 points 1 year ago

‼️ Last time I tried it, it wouldn't work for me! Thank you!

[-] Speckle@lemmy.world 2 points 1 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?

[-] chaorace@lemmy.sdf.org 2 points 1 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.

[-] MostlyBlindGamer@rblind.com 2 points 1 year ago

This message is officially approved by RBlind. Thank you.

You are all making the open web a better place.

[-] OtakuAltair@vlemmy.net 1 points 1 year ago

Great YSK! Definitely doing this from now!

[-] xaxl@lemmy.world 1 points 1 year ago

Is there a way to embed the actual image itself and not have to rely on a third party like Imgur?

[-] Bongles@lemm.ee 2 points 1 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@lemmy.ca 1 points 1 year ago

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

[-] Bongles@lemm.ee 1 points 1 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.

[-] mintiefresh@lemmy.ca 1 points 1 year ago

Thank you. I'll start doing this from now on!

[-] explodicle@local106.com 0 points 1 year ago

Question for Jerboa users: how do you zoom in on one of these comment images? They're frequently too small to read.

[-] megahertz@lemmy.world 1 points 1 year ago

I'm guessing it is in settings? Also a jerboa user. But I am seeing the comment images at a reasonable size. I'm using the dark theme, and I think I changed the font size, but it's been almost a month since I first installed, so not super sure.

load more comments
view more: next ›
this post was submitted on 02 Jul 2023
89 points (94.9% liked)

You Should Know

32162 readers
7 users here now

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason "Why" YSK:

**In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content. **



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

founded 1 year ago
MODERATORS