← ClaudeAtlas

figure-extractorlisted

Extract complete, publication-quality figures and images from documents — local PDFs, PDF URLs, arXiv links, and HTML article pages. Use whenever the user wants to pull figures / charts / diagrams / images out of a paper or web article, says "extract the figures from this PDF / arXiv paper / webpage", needs clean figure PNGs for slides, decks, or reuse, or finds that naive embedded-image extraction returns broken fragments. This is a command-line tool (Python + PyMuPDF) that must be run in a shell; if your runtime has no shell, see the degraded-mode fallback. Keywords: extract figures from pdf, extract images from html, arxiv figure extraction, paper figure extractor, pdf figure crop, pymupdf.
Sunrich-HT/figure-extractor · ★ 4 · Data & Documents · score 75
Install: claude install-skill Sunrich-HT/figure-extractor
# Figure Extractor Skill Use this skill when the user needs complete figures or images extracted from PDFs, arXiv papers, or HTML article pages. ## What this skill actually is (read first) `figure-extractor` is a **command-line tool** (Python + PyMuPDF). "Using it" means running it in a shell — e.g. `figure-extractor extract paper.pdf`. It is **not** an in-agent callable, a hosted service, or a "page" you activate. It does **not** require installation or network. **PDF and HTML sources both** need a Python interpreter with **PyMuPDF and nothing else** — no pip, no PyPI, no GitHub, no Pillow, no beautifulsoup4. If you cannot install packages, use the single-file build, or the reduced extractor printed in this file (Step 0 below). Only URL sources need network. If the user gives you a **browser PDF-viewer URL** (`.../viewer.html?file=...`, Chrome's built-in viewer, Google Docs viewer), pass it in as-is: the real document is unwrapped from `?file=` / `#file=` / `?url=` before anything is fetched. If they give you a **saved HTML page**, pass the local file: images stored as inline `data:` URIs are decoded without touching the network. **Invocation contract** - **Mechanism:** a shell command — installed CLI, `python -m figure_extractor`, or the single file. - **Input:** a local PDF/HTML path or a PDF/arXiv/HTML URL. - **Output:** PNG files + `manifest.json` + `contact_sheet.jpg` (+ optional `figures.zip`) written to `--out`. ## Step 0 — precondition check (always do this fi