Feature Request: Save embedded images from PDFs as separate files with relative Markdown links
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #2056 @theherrovn-sys による — マージされずにクローズ
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
MarkItDown コンストラクターと、issue に示されているエントリーポイント convert("document.pdf") から始め、PDF 変換パスと CLI コマンドを追跡します。両方のインターフェースが要求された画像出力ディレクトリをサポートし、抽出された画像ファイルへの相対リンクを含む Markdown を生成できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
When converting PDFs with embedded images to Markdown, markitdown currently either:
- Truncates base64 data (showing
), or - Preserves full base64 inline (which makes the Markdown file very large and unsuitable for RAG/indexing)
For full-context RAG pipelines and document archival, I need:
- Embedded images extracted and saved as separate files (e.g.
images/page3-figure1.png) - Markdown references using relative paths:
 - Optional: image metadata/captions in front matter or inline comments
Use case
- Converting technical documentation, datasheets, and PDFs with diagrams for AI/LLM ingestion
- Preserving full document context including visual information
- Keeping Markdown files lightweight and portable while still referencing images
Proposed behavior
Add a CLI flag and Python API option, for example:
markitdown document.pdf --extract-images --output-dir ./output
from markitdown import MarkItDown
md = MarkItDown(extract_images=True, output_dir="./output")
result = md.convert("document.pdf")
# result.markdown includes:
# Actual image files saved to ./output/images/
Alternatives considered
- Full base64 inline: makes files too large for indexing/LLM pipelines
- Image descriptions only: loses visual context for diagrams, charts, schematics
- Manual extraction: error-prone and not reproducible
Additional context
- Related to issue #162 (closed) and PR #1140 (base64 preservation added)
- Complements issue #1346 (LLM image descriptions for RAG)
- Would benefit users working with schematics, datasheets, research papers, and technical documentation
Environment
- markitdown version: 0.1.6
- Python version: 3.11+
- OS: macOS
- 主要言語
- Python
- スター
- 198k
- フォーク
- 15k
- 平均マージ
- 2時間 16分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/markitdown のほかの issue
-
IpynbConverter uses a comment inside a Markdown code fence as the notebook title対応中かも @Primaverah が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
microsoft/markitdown#2964 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
PPTX image alt text ending in a backslash breaks the Markdown image対応中かも @dongyikuan919 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/markitdown#2943 ·
メンテナーはふだん 1 日以内に返信
-
PPTX chart labels with pipes or line breaks produce malformed Markdown tables対応中かも @dongyikuan919 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
microsoft/markitdown#2937 ·
メンテナーはふだん 1 日以内に返信
-
DOCX: math pre-processing re-parses every document.xml even without equations (32 s -> 17.5 s on a 12.5 MB document)対応中かも @houyunsun が 26 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
microsoft/markitdown#2834 ·
メンテナーはふだん 1 日以内に返信
-
URL fetch sends default python-requests User-Agent, Wikipedia returns 403対応中かも @sushan5140 が 31 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/markitdown#2820 ·
メンテナーはふだん 1 日以内に返信
microsoft/markitdown の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
hugohe3/ppt-master#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4716 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pcqpcq/open-source-android-apps#619 ·
メンテナーはふだん 1 日以内に返信
-
contribution Windows 主机
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Lee-xeo/Claude-Cage#1519 ·
メンテナーはふだん 1 日以内に返信