Skip to content

DocVortex 0.4.19

Choose a tag to compare

@myhloli myhloli released this 20 Sep 14:23

Changes

  • Align materialized image naming with the MinerU Gradio conventions: direct payloads become images/page_{page_idx}_{owner.type}_{owner.index}.{ext} where the owner is the image/table/chart parent block (equations use equation), and images embedded in visual body HTML use image_{index}_{ordinal} / table_image_{index}_{ordinal} / chart_image_{index}_{ordinal}. Conflicting payloads append _duplicate_n; image bytes are never re-encoded. Consumers should read the document's actual references instead of assembling legacy *_body_* names.
  • Add explicit host callbacks to materialize_middle: image_resolver (payload block and original page index → bytes and extension; None keeps the payload) and asset_resolver (validated HTML image relative path → bytes). Without callbacks, embedded images are still strictly parsed and no host files or source PDFs are read. Hosts using shared image export should depend on docvortex>=0.4.19,<1.

Full Changelog: v0.4.18...v0.4.19