Skip to content

Images in docx files cannot be converted to md documents #1222

Open

Description

@keller31

The images in the document are converted into codes similar to the following, but they are incomplete and lack base64 content.
![](data:image/jpeg;base64...)

Activity

  1. keller31 commented on Apr 28, 2025

    @keller31
    Author

    After reading some documents, I found a solution. Using the keep_data_uris parameter allows md to retain the base64 content of the image.

  2. keller31 commented on Apr 28, 2025

    @keller31
    Author

    example:
    markitdown xxx.docx > xxx.md --keep-data-uris

  3. joshjm commented on Apr 28, 2025

    @joshjm

    there is pr #277 looking to address this. I'm keen to get some code in to merge this functionality; it seems pretty important to me. Will try and have a look at getting code in for this this week; if you can provide any further review on that pr #277, i'll try and fork and address issues.

  4. joshjm commented on Apr 28, 2025

    @joshjm

    Personally, i have a post processing step, that greps through for the base64 data, generates a description, then replaces the binary data with the description. its a little fast and loose right now, but has potential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions