crazynomad/tutorial/pdf-to-images
Claude Code and agent skill by crazynomad/tutorial
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install crazynomad/tutorial/pdf-to-imagesSKILL.md
PDF to Images Converter
Convert PDF files into a series of images using ImageMagick.
Description
A simple yet powerful tool that converts PDF documents into individual PNG images, one per page. Useful for extracting slides from presentations, creating image previews, or processing PDF content for further analysis.
When to Use
Use this skill when users:
- Want to convert PDF to images
- Need to extract slides from PDF presentations
- Mention "PDF 转图片", "拆解 PDF", "PDF to PNG"
- Want to create image previews from PDF documents
- Need individual page images from multi-page PDFs
Features
- ImageMagick Powered: Industry-standard image processing
- Configurable DPI: Adjust output resolution (default: 150 DPI)
- Multiple Formats: Support PNG, JPG, TIFF output
- Batch Processing: Handles multi-page PDFs automatically
- Sequential Naming: Output files named with page numbers (slide-00, slide-01, etc.)
Usage
Basic Syntax
Common Scenarios
Convert PDF to PNG images (default):
Specify output directory:
High resolution output (300 DPI):
Output as JPEG:
Arguments
pdf_file(required): Path to the PDF file-o, --output: Output directory (default: same directory as PDF, with-slidessuffix)-d, --dpi: Resolution in DPI (default: 150)-f, --format: Output format: png, jpg, tiff (default: png)-q, --quality: JPEG quality 1-100 (default: 85, only for jpg format)-p, --prefix: Output filename prefix (default: slide)
Dependencies
Requires ImageMagick installed on the system:
macOS:
Ubuntu/Debian:
Windows: Download from https://imagemagick.org/script/download.php
Output Structure
Claude Integration
When user requests PDF to images conversion:
- Check ImageMagick availability:
``bash which magick || which convert ``
- Execute conversion:
``bash python /mnt/skills/user/pdf-to-images/scripts/pdf_to_images.py \ "USER_PDF_FILE" -o /mnt/user-data/outputs -d 150 ``
- Present files to user:
``python present_files(["/mnt/user-data/outputs/..."]) ``
How It Works
Workflow
- Validation: Check PDF file exists and ImageMagick is available
- Create Output Directory: Create output folder if not exists
- Convert: Use ImageMagick to convert each page to image
- Report: Display generated files and total count
ImageMagick Command
The script uses:
Or for older ImageMagick (v6):
Limitations
- Requires ImageMagick installed on system
- Large PDFs may take time to process
- Memory usage depends on PDF complexity and DPI setting
- Some secured PDFs may not be convertible
Common Issues
Q: Getting "convert: not authorized" error? A: Edit ImageMagick policy file to allow PDF reading:
Q: Output images are too small/large? A: Adjust DPI with -d flag. 150 DPI is good for screen, 300 DPI for print.
Q: Conversion is slow? A: Lower DPI reduces processing time. Try -d 100 for faster conversion.
Example Conversation
User: "帮我把这个 PDF 拆解成图片: presentation.pdf"
Claude:
Version History
v1.0 (Current)
- ImageMagick-based PDF conversion
- Configurable DPI and format
- Automatic output directory creation
- Support for PNG, JPG, TIFF formats
License
Personal use tool. Respects PDF document copyrights.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking02-podcast-downloader/skills/pdf-to-images/SKILL.md
Popularity
- Repository stars
- 184
- Repository forks
- 57
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/crazynomad/tutorial/pdf-to-images)