Skip to content

DOCX embedded images are lost during conversion #162

Description

@RussellLuo

OpenKB currently converts .docx files via MarkItDown() and then runs extract_base64_images(...) on the generated markdown.

However, for .docx files with embedded images, MarkItDown needs keep_data_uris enabled to preserve full base64 image content. Otherwise the output may contain incomplete image refs like ![](data:image/jpeg;base64...), which means OpenKB cannot extract and persist those images afterward.

Relevant upstream context:

Suggested fix:

  • enable keep_data_uris in the MarkItDown-based .docx conversion path before calling extract_base64_images(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions