Bulk Image Extractor
Extract all images from Google Docs, PDFs, websites, and other documents in high resolution.
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.
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 DocsGet new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
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 |
| 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
- File > Download > Microsoft Word (.docx)
- 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 |
| 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