DOCX Files with Embedded Images
Images in a Word document are not stored inline within the text. Instead, OpenXML relies on a complex web of _rels (relationship) files that link an inline shape tag (<wp:inline>) to a physical media file stored in the word/media/ directory of the ZIP archive.
These files are specifically generated to test your application's ability to traverse these relationships, extract the underlying binary image files, and handle multiple common media formats like JPEG and PNG.
Single image
A document containing a single embedded JPEG image, acting as the baseline relationship test.
Multiple images
A document containing numerous images scattered throughout the text to test iterative extraction and memory handling.
Image formats
A document mixing both lossy (JPEG) and lossless (PNG) embedded media to ensure format-specific parsers handle both.
Frequently Asked Questions
Use Cases
- Testing automated media extraction scripts that pull images out of Word documents.
- Validating relationship parser integrity (ensuring the `rId` in the XML correctly maps to the actual image path).
- Checking that HTML converters properly generate `<img src="data:image/...">` tags from embedded OpenXML graphics.