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

Add alt text to all images in project #37

Open
cynthiahqy opened this issue Jan 22, 2025 · 2 comments
Open

Add alt text to all images in project #37

cynthiahqy opened this issue Jan 22, 2025 · 2 comments
Assignees

Comments

@cynthiahqy
Copy link
Collaborator

Write a utility script to feed images to AI model and generate alt-text for human review and inclusion in docs.

@cynthiahqy cynthiahqy self-assigned this Jan 22, 2025
@cynthiahqy
Copy link
Collaborator Author

This uses a regex to find images in a qmd document, and then deletes any used ones: https://www.cynthiahqy.com/posts/remove-unused-files/

It would probably be better to just feed folders of images through the utility script, have the alt text saved somewhere, and then brought into the document during the render process using a lua filter.

@mitchelloharawild
Copy link
Collaborator

Someone may have implemented something similar to this already. It'd be worth a quick search.

Finding in-use images is probably better with a lua filter via pandoc's readers. From there it can return a dataset for further processing (removing unused files, generating alt-text, etc.)

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