Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt tags for other supported image types #1320

Open
bmcfee opened this issue Jul 9, 2020 · 1 comment
Open

Alt tags for other supported image types #1320

bmcfee opened this issue Jul 9, 2020 · 1 comment

Comments

@bmcfee
Copy link

bmcfee commented Jul 9, 2020

PR #1112 implemented alt tag support for PNG and JPEG outputs (eg matplotlib figures) which can be set through cell tags.
It seems like this could be readily extended to other formats supported by IPython.display.set_matplotlib_formats, notably svg. (PDF might be a weird corner case for this, so maybe it's okay to ignore that.)

SVG support could be helpful for accessibility, since they would support magnification better than a raster format. It'd be a shame to have to use raster images just to get alt text.

@MSeal
Copy link
Contributor

MSeal commented Jul 10, 2020

I'm all for it if someone wants to take a crack at adding the functionality. I can help review or point towards where specific code lives, but I don't have time currently to implement it myself.

Agreed that PDF might be a difficult case to deal, and might be ok to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants