docx icon indicating copy to clipboard operation
docx copied to clipboard

Adding ALT tags to Image?

Open ziveo opened this issue 4 years ago • 4 comments

Is it possible to add alt tags to Images added to DOCX document?

ziveo avatar Jan 21 '21 23:01 ziveo

I cant find any documentation on this:

http://officeopenxml.com/drwPic-tile.php

dolanmiu avatar Jan 24 '21 05:01 dolanmiu

Closing due to inactivity

dolanmiu avatar Jan 28 '21 10:01 dolanmiu

@dolanmiu you are correct when mentioning that ALT tag is not part of Office Open XML documentation. My use case is creation accessible documents and one of requirements is having alt tag that will give users who are using screen readers more details about images inside document.

Article related to topic Images in Word - https://blogs.wright.edu/learn/accessibility/word/images-in-microsoft-word/

ziveo avatar Jan 28 '21 14:01 ziveo

Ok, I will take a look into whats needed to be done

dolanmiu avatar Jan 29 '21 14:01 dolanmiu

Thanks for the effort, great lib! Is it even possible to add alt text to an image?

devgeni avatar Oct 19 '22 15:10 devgeni

The feature is now complete, and is in this PR:

https://github.com/dolanmiu/docx/pull/1741

dolanmiu avatar Oct 26 '22 22:10 dolanmiu