Hacker News new | ask | show | jobs
by Veuxdo 1064 days ago
You probably shouldn't convert diagrams from HTML to PNGs since you lose all accessibility. SVGs might be better; I'm actually not at sure.
1 comments

When rendered as an image, they don't differ; you'd have to inline the SVG DOM in your HTML to make a difference. And yes, then you can have screen readers reading the text, ARIA attributes to better describe certain parts, etc.

That being said, SVG is likely still a better option than PNG for its scalability alone. At least for this kind of content.