Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt text should allow more characters than 420 #2336

Open
dilinger opened this issue Dec 30, 2022 · 2 comments
Open

Alt text should allow more characters than 420 #2336

dilinger opened this issue Dec 30, 2022 · 2 comments
Labels
accessibility Accessibility (a11y) enhancement New feature or request

Comments

@dilinger
Copy link

I posted a screenshot that included a post thread. I wanted to paste the actual thread text into the alt text, but there wasn't enough space. I found that kind of odd, until I realized that pinafore only allows 420 characters of alt text; that's actually less than the post limit of 500 characters!

Meanwhile, my local mastodon instance running 4.0.2 allows 1500 characters of alt text. Please consider updating pinafore to allow 1500 characters for alt text as well.

It's especially important for people with disabilities that images of text include the actual text. For example, if you're posting a screenshot of a community notice showing covid testing site locations, there should be enough alt text space for the person posting to actually cut & paste the information. People with screenreaders should be able to discover the locations, and not just see a summary of the image saying "An image of covid testing site locations". For that, more characters than 420 is necessary.

@ChrisDuffley
Copy link

In other words, I also suggest that, like how character limits for toots are honored, the info for the alt text limit that's server-side should also be used, rather than being limited client-side.

@nolanlawson
Copy link
Owner

Thanks for the suggestion. I set it to 420 because this was (at least at the time) the limit that Mastodon imposes. If your instance has customized this behavior, then is there some way it is communicated?

For instance, the maximum number of characters in a post (default 500) is communicated via configuration.statuses.max_characters in the API (e.g. https://mastodon.social/api/v1/instance). However I don't see any equivalent one for alt text, at least on mastodon.social.

@nolanlawson nolanlawson added enhancement New feature or request accessibility Accessibility (a11y) labels Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Accessibility (a11y) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants