Home
cd ../playbooks
File OrganizationBeginner

Bulk Image Extractor

Extract all images from Google Docs, PDFs, websites, and other documents in high resolution.

5 minutes
By communitySource
#images#extraction#google-docs#pdf#batch-download

You need the images from a 200-page PDF or a Google Doc full of screenshots, but copy-paste gives you low-res blobs and there's no 'export all images' button anywhere.

Who it's for: designers extracting assets from client documents, marketers pulling images from reports, teachers collecting visuals from course materials, researchers saving figures from papers, content creators repurposing visual assets

Example

"Extract all images from this 150-page PDF and these 3 Google Docs" → All embedded images saved as high-resolution files in an organized folder, named by source document and page number

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add bulk-image-extractor
# Bulk Image Extractor

## Your Role
You help extract embedded images from various document types including Google Docs, PDFs, Office documents, and web pages. You provide the right commands and methods to get high-resolution images.

## Extraction Methods

### Google Docs
The best method is to export as .docx and extract:

```bash
# Step 1: User downloads as .docx from Google Docs

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Extract all embedded images from Google Docs, PDFs, Word documents, PowerPoints, and web pages. Get high-resolution versions organized in a folder.


Quick Start

Step 1: Create an Extraction Folder

mkdir -p ~/Documents/Extracted-Images

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Documents/Extracted-Images/

Step 3: Run Claude Code

cd ~/Documents/Extracted-Images
claude

Step 4: Request Extraction

Say: "Extract all images from [document/URL]"


Sources Supported

Source Method Notes
Google Docs Export as .docx, extract Preserves original quality
PDF pdfimages or poppler Gets embedded images
Word (.docx) Unzip, find images Images in word/media/
PowerPoint Unzip, find images Images in ppt/media/
Web Pages wget/curl Downloads linked images
ZIP Archives Extract, filter Find images recursively

Extraction Methods

From Google Docs

  1. File > Download > Microsoft Word (.docx)
  2. Then extract from .docx:
# Unzip the docx (it's a ZIP file)
unzip document.docx -d extracted/

# Images are in word/media/
ls extracted/word/media/

From PDF

# Using pdfimages (from poppler)
pdfimages -all document.pdf output_prefix

# Using pdftoppm for full pages
pdftoppm -png document.pdf page

# Install poppler
# macOS: brew install poppler
# Ubuntu: sudo apt install poppler-utils

From Word/PowerPoint

# DOCX files
unzip document.docx -d doc_extracted/
cp doc_extracted/word/media/* ./images/

# PPTX files
unzip presentation.pptx -d ppt_extracted/
cp ppt_extracted/ppt/media/* ./images/

From Web Pages

# Download all images from URL
wget -r -l1 -A jpg,jpeg,png,gif -P images/ "https://example.com/page"

# Or using curl
curl -O "https://example.com/image[1-10].jpg"

Example Output

Extracted-Images/
├── google-doc-export/
│   ├── image1.png (1920x1080)
│   ├── image2.jpg (2400x1600)
│   └── image3.png (800x600)
├── pdf-images/
│   ├── page-001.png
│   └── page-002.png
└── _extraction_log.txt

Batch Extraction

# All PDFs in folder
for pdf in *.pdf; do
  mkdir -p "${pdf%.pdf}_images"
  pdfimages -all "$pdf" "${pdf%.pdf}_images/img"
done

# All DOCX files
for doc in *.docx; do
  mkdir -p "${doc%.docx}_images"
  unzip -j "$doc" "word/media/*" -d "${doc%.docx}_images/"
done

Image Quality

Source Quality Notes
Google Docs High Use .docx export, not PDF
Word Original Embedded at full resolution
PDF Varies Depends on how PDF was created
Web Varies May be compressed

Getting Best Quality

  • Google Docs: Download as .docx, not PDF
  • PDFs: Use pdfimages with -all flag
  • Web: Look for original/full-size links
  • Presentations: Export slides as images if needed

Tips

  • Rename systematically: Add prefixes for organization
  • Check dimensions: Verify you got full resolution
  • Keep metadata: Some tools preserve EXIF data
  • Deduplicate: Remove identical images after extraction
  • Convert formats: Standardize to PNG or JPG

Commands

"Extract images from this Google Doc"
"Get all images from this PDF"
"Download images from [URL]"
"Extract media from this PowerPoint"
"Batch extract from all documents in folder"
"What's the best quality I can get?"
"Organize extracted images by size"

Troubleshooting

Images are low quality Try different export method, or source may not have better quality

PDF extraction fails Install poppler: brew install poppler or apt install poppler-utils

Can't unzip Office doc Rename to .zip first, then extract

Missing images Some may be referenced (links) not embedded - need different approach

$Related Playbooks

File Organization

Chat with PDF Documents

Answer questions about PDF content, summarize, and extract information

10 minutes
Intermediate
File Organization

Document Parser

Parse complex documents while preserving structure, tables, and figures using IBM's docling library.

10 minutes
Advanced
File Organization

Document Processing Pipeline

Chain document operations into reusable pipelines

10 minutes
Advanced
File Organization

7-Minute Digital Declutter

Complete digital cleanup of photos, documents, and downloads in 7 minutes with intelligent recommendations.

5 minutes
Beginner
File Organization

Word Document Manipulation

Create, edit, and manipulate Word documents programmatically using python-docx

10 minutes
Advanced
File Organization

CSV Data Visualizer

Create professional data visualizations, statistical reports, and interactive dashboards from CSV files for analysis and presentations.

5 minutes
Beginner
File Organization

Data Analyst Toolkit — CSV Analysis & Dashboard Generator

Analyze CSV and Excel data with automatic missing value detection, intelligent imputation, and interactive Plotly dashboards. Generate exploratory data analysis reports in minutes with Claude Code.

10 minutes
Intermediate
File Organization

Disk Space Analyzer

Find exactly what's eating your disk space with categorized breakdown and prioritized cleanup recommendations.

5 minutes
Beginner
File Organization

Duplicate File Detector

Find exact duplicates, near-duplicates, and version variants across your files with smart recommendations - never auto-deletes.

5 minutes
Beginner
File Organization

CSV & Excel Data Analyst

Ask questions about your spreadsheets in plain English. Get insights, summaries, and visualizations without knowing formulas or pivot tables.

5 minutes
Beginner
File Organization

Smart File Organizer

Organize and rename files based on content analysis

10 minutes
Advanced
File Organization

Natural Language Home Automation

Translate natural language into home automation configs for Home Assistant, HomeKit, and SmartThings.

10 minutes
Intermediate

Browse all File Organization playbooks →