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
When I convet a DOCX file, I noticed that every image lost. by trace code , docx converted to html properly and image store in html as dataurl, but when html convert to markdown, you removed that in def convert_img at line 120 whitout any config. Every image lost without any alert.
Perhaps we can make this optional, but the reason they are removed is because we were feeding the text_content into LLMs (the primary motivation for development), and the base64-encoded images would overwhelm the context windows.
Reacted by Gagan Bansal, Nico, ChaimL and Smilencer
Perhaps we can make this optional, but the reason they are removed is because we were feeding the text_content into LLMs (the primary motivation for development), and the base64-encoded images would overwhelm the context windows.
When I convert a PDF to Markdown using the following code, it only outputs the textual information without any image information.
md = MarkItDown(llm_client=client, llm_model="qwen-long")
result = md.convert("")
print(result.text_content)
Perhaps we can make this optional, but the reason they are removed is because we were feeding the text_content into LLMs (the primary motivation for development), and the base64-encoded images would overwhelm the context windows.
I see, maybe we could make another copy without images and feed it to LLMs, so user can get the full document.
Activity
afourney commentedon Dec 16, 2024
Perhaps we can make this optional, but the reason they are removed is because we were feeding the text_content into LLMs (the primary motivation for development), and the base64-encoded images would overwhelm the context windows.
ColorfulCoco commentedon Dec 18, 2024
When I convert a PDF to Markdown using the following code, it only outputs the textual information without any image information.
md = MarkItDown(llm_client=client, llm_model="qwen-long")
result = md.convert("")
print(result.text_content)
fab617 commentedon Dec 18, 2024
I see, maybe we could make another copy without images and feed it to LLMs, so user can get the full document.
afourney commentedon Mar 21, 2025
Fixed in #1140