You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Images in docx files cannot be converted to md documents #1222
The images in the document are converted into codes similar to the following, but they are incomplete and lack base64 content. 
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.
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.
Activity
keller31 commentedon Apr 28, 2025
After reading some documents, I found a solution. Using the keep_data_uris parameter allows md to retain the base64 content of the image.
keller31 commentedon Apr 28, 2025
example:
markitdown xxx.docx > xxx.md --keep-data-urisjoshjm commentedon Apr 28, 2025
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.
joshjm commentedon Apr 28, 2025
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.