Over time, I noticed that some posts have images that don’t display controls, and as a result can’t be enlarged, zoomed in, and don’t display alt text[1].
Here’s one example in this post, where I used the split markdown editor:
Why does this happen? If it’s about how the image is inserted, can the defaults be changed or UI made clearer?
That pretty much only leaves screen reader users being able to find context they’re missing, since it’s in HTML markup, but not shown at all otherwise. ↩︎
Images under 1000 pixels wide or 500 pixels tall will not be lightboxed because their quality is too low. Your picture is larger than that, but sometimes Discourse (our forum software) annoyingly decides to specify a smaller size by default. You can see it in the markdown code right after the name, in your example it is |69x420. You can manually remove this bit to force it to be shown at maximum resolution and then it will be lightboxed (with controls).
If this continues to be an issue it is possible to force images to be lightboxed even at small resolutions, but this might trigger unwanted situations on small images such as gifs, stickers and image-based post decorations like dividers.
Unfortunately there is currently no easy way for us to fix the issue of Discourse automatically specifying this image size upon upload, you just have to remember to change it if you want it to have a lightbox.
Hope this resolves it for you, thanks for letting us know.
Thanks, but that didn’t work, now I specified 3508x2480 (original resolution) and the lightbox is still not there. I also tried removing the dimensions to no avail.