From image-production
Rasterize PDF pages to numbered image files (JPEG, PNG, or TIFF) at a specified resolution (DPI). Use when you need to convert PDF content to standalone images — one image per page — with optional page range selection.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin image-productionThis skill is limited to using the following tools:
Convert PDF pages to raster images (JPEG, PNG, or TIFF) using `pdftoppm`. Each page becomes a numbered image file. Different from `pdf-extract-embedded-images` — this rasterizes the entire page content.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Convert PDF pages to raster images (JPEG, PNG, or TIFF) using pdftoppm. Each page becomes a numbered image file. Different from pdf-extract-embedded-images — this rasterizes the entire page content.
jpeg, png, or tiff. Default: jpeg (good balance of size and quality). PNG for lossless, TIFF for archival.command -v pdftoppm || echo "pdftoppm not installed — install with: sudo apt install poppler-utils"
Abort if missing.
file "<input.pdf>"
pdfinfo "<input.pdf>" # shows page count, dimensions, etc.
If invalid, abort. Print page count for user awareness.
Base command:
pdftoppm -r <DPI> -<format> "<input.pdf>" "<output-prefix>"
Examples:
pdftoppm -r 300 -jpeg input.pdf output_pdftoppm -r 150 -png -f 5 -l 10 input.pdf output_pdftoppm -r 600 -tiff input.pdf output_Flags:
-r <DPI> — resolution in DPI.-<format> — output format: jpeg, png, tiff.-f <N> — first page (optional).-l <N> — last page (optional).pdftoppm -r <DPI> -<format> <page-flags> "<input.pdf>" "<output-prefix>"
Show progress and warn if the PDF is large (many pages or high DPI — processing may take a minute or more).
After conversion:
output_001.jpg, output_002.jpg, ...).prefix-000001.png). Naming convention depends on pdftoppm version; typically zero-padded 6-digit page numbers.pdftoppm rasterizes the entire page at the specified DPI. This is lossy compared to the original PDF vector content, but suitable for archival, sharing, or thumbnail workflows. See pdf-extract-embedded-images for extracting embedded photos without rasterization.apt install poppler-utils.