mlem icon indicating copy to clipboard operation
mlem copied to clipboard

When an image fails to load, show alt text if available

Open Sjmarf opened this issue 2 years ago • 3 comments

Images in posts/comments are formatted as ![Alt text](https://google.com/myimage.png). If alt text is available, we should show it when the image fails to load.

Sjmarf avatar Dec 01 '23 08:12 Sjmarf

Possible child of #378

Sjmarf avatar Jan 16 '25 20:01 Sjmarf

To add to this, I learned today you can add hover text to images by adding quoted text after the image url:

![alt text](https:://example.com/image.png "Hover text")

I feel this would be a nice addition to this ticket, but if y'all feel this should be separate, I'm happy to create a new issue.

d42ohpaz avatar Feb 27 '25 15:02 d42ohpaz

At the moment we're using the presence of hover text to decide whether an image should be displayed as a full-size, tappable image or as an emoji. All custom emojis have hover text, and people rarely use hover text apart from emojis. So, we render all images with hover text as emojis. Unfortunately, there isn't really a better way to decide whether an image should be an emoji or not without using the tooltip value.

Sjmarf avatar Feb 27 '25 20:02 Sjmarf