Install
openclaw skills install pdf-image-extractorExtract images from PDFs in original, 800x800 web-ready, or compressed under 50KB formats for printing, e-commerce, or social media use.
openclaw skills install pdf-image-extractorExtract images from PDF files with three output modes.
| Mode | Command | Best For |
|---|---|---|
| Original | python scripts/extract_original.py | Printing, high-quality |
| Standard | python scripts/extract_standard.py | Website, e-commerce |
| Compress | python scripts/extract_compress.py | WeChat, Douyin, social |
# Install dependencies
pip install pymupdf pillow
# Configure
# Edit CONFIG section at top of each script:
# - pdf_folder: Path to your PDF folder
# - output_folder: Where to save images
# Run
python scripts/extract_original.py # Original quality
python scripts/extract_standard.py # 800x800 square
python scripts/extract_compress.py # Compressed sharing
output_folder/
├── PDF_Name_1/
│ ├── page001_img01.jpg
│ └── ...
└── PDF_Name_2/
└── ...
License: MIT
Author: 小杰 @ AI家具链