with one click
pdf-to-images
// Convert PDF files into a series of images (PNG/JPG) using ImageMagick
// Convert PDF files into a series of images (PNG/JPG) using ImageMagick
Generate "image + text" style visual decks on the open-slide React framework with ็ปฟ็ฎ็ซ่ฝฆ's design system โ dark-teal / dark-coral themes, four core layouts (hero-cover / chapter-cover / takeaway / thesis), Nano Banana background imagery, and safe-zone typography discipline. Use when the user wants a visually dense, cinematic slide deck where layout is image-driven rather than text-driven and is comfortable shipping a static URL or PDF. NOT for legacy .pptx file output โ that path was removed in v1.0; future PPTX export is planned as an open-slide upstream contribution.
[DEPRECATED โ narrow use only] Inject content into a pre-existing hand-authored Google Slides master template via gws CLI batchUpdate (replaceAllText + replaceAllShapesWithImage). Use ONLY when (1) a polished Slides master template already exists on Drive and (2) you need to batch-fill it with N variants of content. For all other "make a visual deck" use cases (general drafting, ep-style content decks, first-time deck), use the visual-deck skill instead โ it ships better visual fidelity via open-slide and no template wall.
Set up a research-driven PPT thesis using a three-section framework (counter-consensus paradox / structural decomposition / investigation paths) plus a six-question specificity diagnostic. Use when the PPT type is Research โ NOT Pitch. Run ppt-classify first if type is unknown.
Review a PPT storyline for structural fit, pacing, and key-visual anchors. Type-aware โ research-driven, pitch-driven, and teaching-driven decks have different valid storyline shapes. Use after thesis is set (ppt-classify + ppt-research-setup or plan-ceo-review) and BEFORE visual-deck generation.
Classify a PPT brief into one of four types (Pitch / Research / Teaching / Narrative), then emit a high-level chapter skeleton for that type personalized to the topic. Different PPT types need different็ซ่ฎบ frameworks AND different chapter structures โ a research PPT is not a pitch, a pitch is not a narrative. Use at the very start of PPT planning, BEFORE thesis setup. Pairs with ppt-research-setup / other per-type setup skills for detailed per-chapter reasoning.
Mac ๆบ่ฝ็ฃ็ๆธ ็ๅฉๆ๏ผๅบไบ Mole (https://github.com/tw93/Mole) ็็จๆทๅๅฅฝๅ ่ฃ ๅจ
| name | pdf-to-images |
| description | Convert PDF files into a series of images (PNG/JPG) using ImageMagick |
Convert PDF files into a series of images using ImageMagick.
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.
Use this skill when users:
python scripts/pdf_to_images.py "PDF_FILE" [-o OUTPUT_DIR] [-d DPI] [-f FORMAT]
Convert PDF to PNG images (default):
python scripts/pdf_to_images.py "presentation.pdf"
Specify output directory:
python scripts/pdf_to_images.py "document.pdf" -o ./output-images
High resolution output (300 DPI):
python scripts/pdf_to_images.py "document.pdf" -d 300
Output as JPEG:
python scripts/pdf_to_images.py "document.pdf" -f jpg -q 90
pdf_file (required): Path to the PDF file-o, --output: Output directory (default: same directory as PDF, with -slides suffix)-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)Requires ImageMagick installed on the system:
macOS:
brew install imagemagick
Ubuntu/Debian:
sudo apt-get install imagemagick
Windows: Download from https://imagemagick.org/script/download.php
output-directory/
โโโ slide-00.png # Page 1
โโโ slide-01.png # Page 2
โโโ slide-02.png # Page 3
โโโ ...
When user requests PDF to images conversion:
Check ImageMagick availability:
which magick || which convert
Execute conversion:
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:
present_files(["/mnt/user-data/outputs/..."])
The script uses:
magick -density {DPI} "{input.pdf}" "{output_dir}/{prefix}-%02d.{format}"
Or for older ImageMagick (v6):
convert -density {DPI} "{input.pdf}" "{output_dir}/{prefix}-%02d.{format}"
Q: Getting "convert: not authorized" error? A: Edit ImageMagick policy file to allow PDF reading:
sudo sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' /etc/ImageMagick-*/policy.xml
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.
User: "ๅธฎๆๆ่ฟไธช PDF ๆ่งฃๆๅพ็: presentation.pdf"
Claude:
# Check ImageMagick
which magick || which convert
# Convert PDF to images
python /mnt/skills/user/pdf-to-images/scripts/pdf_to_images.py \
"presentation.pdf" \
-o ./presentation-slides \
-d 150
# Present files
present_files(["./presentation-slides/slide-00.png", ...])
v1.0 (Current)
Personal use tool. Respects PDF document copyrights.