Open aranas opened 5 months ago
I'm afraid it is currently not possible to add alt text to images unfortunately. There is a recent open open issue on the streamlit website: https://github.com/streamlit/streamlit/issues/8563 I tried out two screen readers:
Both didn't work great with the streamlit app. For example:
@chrisdburr in our technical test meeting I thought you had mentioned there is a way to add alt text, do you remember where you saw this?
I wasn't 100% about whether it would work, but I saw that markdown is supported for adding images, which means that (in principle) alt-text would be added in the usual way:
![Add alt text here](path/to/file.jpg)
Using markdown directly did not work for me, although a workaround image_to_html with 'alt' tag as suggested here seemed to be able to display the image. However, I still cannot assess if the alt-text is working as the image is not recognized by the screen readers I have tried. Might be that the free ones generally don't report images. I will try to find out how to properly assess our alt text.