Alt text for media #664
lo2dev
started this conversation in
Feature Suggestions
Replies: 1 comment
-
If/When this gets implemented, it would be good if it had an indicator noting the amount of characters left the description can have. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A similar issue has been made a while ago but it seems to be focused on codeblocks and not media so I'm writing this separately.
Currently you can't set alt text for images or videos, but it would greatly benefit people with disabilities that use Revolt. My reference for alt text implementation is the fediverse as I don't use any other chat app.
Frontend solutions:
In the pre-upload phase, the attachments should have the following buttons: spoiler toggle (but that's another issue), close button and the alt text button which spawn a modal so the user can input alt text. Here's a rough concept I made in GTK to illustrate (of course no one has to follow these one to one):
![screenshot showcasing attachments actions before uploading them to revolt](https://private-user-images.githubusercontent.com/115636509/303014226-f6d2ce60-7b4e-48d1-9313-b9094a5efa7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDg1MjIsIm5iZiI6MTczOTE0ODIyMiwicGF0aCI6Ii8xMTU2MzY1MDkvMzAzMDE0MjI2LWY2ZDJjZTYwLTdiNGUtNDhkMS05MzEzLWI5MDk0YTVlZmE3ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwMDQzNDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NjcxNmRiNWNjNDk3YjZiOTY1NTJmNGQzNTYyMjc5OGJkNzYyZTM4ZmNmYjBmMTI3ODIwMzc0YjBiMGY1MWZiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.dj9EKzn6ntehFk5G5zVotr5cZFlRUC2yZf12xGx2YSs)
My only gripe with this is that there might be some issues on mobile interfaces.
The alt modal should feature the image and a text field. The image should be big enough to be seen fully and the text field big enough so it doesn't feel cramped in case of big alt text. Concept in GTK:
![image showcasing a GTK window for adding alt text to media](https://private-user-images.githubusercontent.com/115636509/303053672-4c53f99a-72ee-42df-9b13-3d0edc366b5d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDg1MjIsIm5iZiI6MTczOTE0ODIyMiwicGF0aCI6Ii8xMTU2MzY1MDkvMzAzMDUzNjcyLTRjNTNmOTlhLTcyZWUtNDJkZi05YjEzLTNkMGVkYzM2NmI1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwMDQzNDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01YTE5NjY0NmQ0MDEyMzlhNmE5NmJlYmI1YzgyOWQxN2JiNWEyZTQzNDVmYWQwZTI0M2EwMGU1ZTYyZGM3ZmI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.tgo1RWMh7o0hrELj0hHtTuj6GV9Rc1GkOvCEIAbOmk8)
Images on chat should have a little button in their corner with the label "ALT" which spawns a modal with the text selectable.
Backend solutions:
I am not knowledgeable enough in this regard, but I would guess there would be two new API changes. One to set the alt text related to the specific image and one to get the alt text.
Beta Was this translation helpful? Give feedback.
All reactions