Skip to main content

Module image

Module image 

Source
Expand description

Image extraction helpers for DOCX archives.

Parses word/_rels/document.xml.rels to build a relId -> media part path mapping, and reads raw image bytes from the ZIP archive.

Structs§

Relationships
Parsed relationship mapping from word/_rels/document.xml.rels.

Functions§

extension_from_filename
Extracts the file extension (lowercase, without dot) from a filename.
read_zip_part
Reads the raw bytes of a ZIP entry by name.