paper-image-extractor

Extract figures from academic papers via arXiv source packages or PDF parsing.

5|2|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill paper-image-extractor-medtilab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: paper-image-extractor
Source: https://github.com/MedTiLab/Auto-meta-analysis/tree/main/skills/paper-image-extractor
Command: npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill paper-image-extractor-medtilab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyMuPDF, requests, and includes scripts (resource) components.

What problem does it solve? Getting high-quality figures out of research papers is tedious: screenshots from PDFs are low-resolution, and manually hunting through arXiv source files is slow. This Skill automates figure extraction with a three-tier strategy that prioritizes original images from arXiv source packages over embedded PDF images. ## Core Features & Use Cases - arXiv Source Extraction: Downloads the e-print source tarball and pulls original PNG/JPG/EPS/SVG figures from pics/, figures/, fig/, images/, or img/ directories. - PDF Fallback Extraction: Uses PyMuPDF to extract embedded image objects or render PDF figure pages to PNG at 150 DPI when source packages are unavailable. - Indexed Output: Generates an index.md cataloging every extracted image with filename, path, size, format, and source label (arxiv-source, pdf-figure, pdf-extraction). - Use Case: Given arXiv ID 2510.24701, run the extraction script to download its source package, copy all original figures into an output directory, and produce a metadata index for a literature review or presentation. ## Quick Start Extract all figures from arXiv paper 2510.24701 into an images folder with a generated index file.

Frequently Asked Questions about paper-image-extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract figures from an arXiv paper?▼

Run the extraction script with the arXiv ID, output directory, and index file path. It downloads the e-print source tarball from arxiv.org, searches figure directories like pics/ or figures/, and copies original images to your output folder.

How to extract images from a PDF with Python?▼

Use PyMuPDF (fitz) to iterate pages, call page.get_images() for embedded image objects, and extract_image() to save them. This Skill applies that method as a fallback when arXiv source packages are unavailable.

Does the extractor work with local PDF files?▼

Yes, you can pass a local PDF path instead of an arXiv ID. If the filename contains an arXiv ID pattern, it still attempts source download first; otherwise it extracts embedded images directly from the PDF.

What image formats are supported during extraction?▼

From arXiv sources it collects PNG, JPG, JPEG, PDF, EPS, and SVG files. PDF-format figures are rendered to PNG at 150 DPI, and embedded PDF images are saved in their native format.

Why does extraction return few or no images?▼

The paper may not be on arXiv, the source package may lack figure directories, or network access to arxiv.org may fail. In those cases the script falls back to direct PDF extraction, which only finds embedded raster images.