[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F130P2JDAVSHYA3TQS8KVW":3,"skill-same:01M7F130P2JDAVSHYA3TQS8KVW":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F130P2JDAVSHYA3TQS8KVW","pdf-to-images",null,"Use when the user wants to rasterize PDF pages into numbered image files (JPEG, PNG, or TIFF) at a chosen resolution (DPI) — one image per page, with optional page-range selection. For recovering the photos embedded in a PDF at native resolution instead, use `pdf-extract-embedded-images`. Triggers - \"turn this PDF into images\", \"export each page as a PNG\", \"give me page 3 of this PDF as a JPEG\".","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fpdf-to-images\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: pdf-to-images\ndescription: Use when the user wants to rasterize PDF pages into numbered image files (JPEG, PNG, or TIFF) at a chosen resolution (DPI) — one image per page, with optional page-range selection. For recovering the photos embedded in a PDF at native resolution instead, use `pdf-extract-embedded-images`. Triggers - \"turn this PDF into images\", \"export each page as a PNG\", \"give me page 3 of this PDF as a JPEG\".\nallowed-tools: Bash(pdftoppm *), Bash(pdfinfo *), Bash(command *), Bash(file *), Bash(ls *), Bash(mkdir *), Bash(wc *), Read, Write\n---\n\n# Rasterize PDF to Images\n\nConvert 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.\n\n## When to use\n\n- Converting a scanned PDF or document PDF to standalone images for archival, editing, or distribution.\n- Extracting pages as thumbnails or preview images at lower DPI.\n- Creating image sequences from a multi-page PDF without needing OCR or text extraction.\n\n## Inputs to gather\n\n- **Input PDF file** — path to the PDF. Required.\n- **DPI (resolution)** — dots per inch. Default: 300 (suitable for archival and print). Ask if the user needs lower DPI for faster processing or smaller file size (e.g., 150 for thumbnails, 600 for high-quality scans).\n- **Output format** — `jpeg`, `png`, or `tiff`. Default: `jpeg` (good balance of size and quality). PNG for lossless, TIFF for archival.\n- **Page range** (optional) — ask if they want all pages or a subset. If a subset, capture start page and end page (e.g., pages 5–10).\n- **Output directory** — optional. Default: current directory.\n\n## Procedure\n\n### 1. Check tooling\n\n```bash\ncommand -v pdftoppm >\u002Fdev\u002Fnull || {\n  echo \"pdftoppm not installed — see the image-ops-install-deps skill (poppler-utils)\" >&2\n  exit 1\n}\n```\n\n### 2. Validate PDF\n\n```bash\nfile \"$input\" \npdfinfo \"$input\" || { echo \"not a readable PDF: $input\" >&2; exit 1; }\n```\n\nIf invalid, abort. Print the page count for user awareness — it also determines the filename padding width (see step 5).\n\n### 3. Build command\n\nBase command:\n\n```bash\npdftoppm -r \"$dpi\" \"-$format\" \"$input\" \"$output_prefix\"\n```\n\n**Examples:**\n\n- All pages, JPEG at 300 DPI: `pdftoppm -r 300 -jpeg \"input.pdf\" \"output\"`\n- Pages 5–10, PNG at 150 DPI: `pdftoppm -r 150 -png -f 5 -l 10 \"input.pdf\" \"output\"`\n- All pages, TIFF at 600 DPI: `pdftoppm -r 600 -tiff \"input.pdf\" \"output\"`\n\nFlags:\n- `-r \u003CDPI>` — resolution in DPI.\n- `-\u003Cformat>` — output format: `jpeg`, `png`, `tiff`.\n- `-f \u003CN>` — first page (optional).\n- `-l \u003CN>` — last page (optional).\n\n### 4. Execute\n\n```bash\npdftoppm -r \"$dpi\" \"-$format\" $page_flags \"$input\" \"$output_prefix\" \\\n  || { echo \"pdftoppm failed on $input\" >&2; exit 1; }\n```\n\nShow progress and warn if the PDF is large (many pages or high DPI — processing may take a minute or more).\n\n### 5. Report\n\nAfter conversion:\n\n- Count of images created.\n- Output directory and filename pattern. `pdftoppm` pads the page number to the width of the total page count — a 9-page PDF gives `output-1.jpg`, a 40-page PDF gives `output-01.jpg`, a 500-page PDF gives `output-001.jpg`. Read the actual names off disk rather than predicting them.\n- File sizes and total space used.\n- If a page range was used, note which pages were extracted.\n\n## Output \u002F side effects\n\n- Numbered image files created. The zero-padding width is derived from the document's total page count (not a fixed width), and the separator is a hyphen by default.\n- Original PDF unchanged.\n\n## Notes\n\n- **Rasterization vs. embedding:** `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.\n- **DPI guidance:** 300 DPI is standard for documents and photos. 150 DPI is adequate for thumbnails or web preview. 600 DPI or higher for fine scanning or print-quality archival.\n- **Format choice:** JPEG for smaller files (good for photos within PDFs). PNG for lossless (documents with text). TIFF for professional archival (larger files, lossless, can embed metadata).\n- **Large PDFs:** Page rasterization is I\u002FO and CPU intensive. A 100-page PDF at 300 DPI can take 1–2 minutes. Warn the user before starting large jobs.\n- Depends on poppler (`apt install poppler-utils` on Debian\u002FUbuntu, `brew install poppler` on macOS). Use `image-ops-install-deps` rather than installing by hand.\n","# Rasterize PDF to Images\n\nConvert 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.\n\n## When to use\n\n- Converting a scanned PDF or document PDF to standalone images for archival, editing, or distribution.\n- Extracting pages as thumbnails or preview images at lower DPI.\n- Creating image sequences from a multi-page PDF without needing OCR or text extraction.\n\n## Inputs to gather\n\n- **Input PDF file** — path to the PDF. Required.\n- **DPI (resolution)** — dots per inch. Default: 300 (suitable for archival and print). Ask if the user needs lower DPI for faster processing or smaller file size (e.g., 150 for thumbnails, 600 for high-quality scans).\n- **Output format** — `jpeg`, `png`, or `tiff`. Default: `jpeg` (good balance of size and quality). PNG for lossless, TIFF for archival.\n- **Page range** (optional) — ask if they want all pages or a subset. If a subset, capture start page and end page (e.g., pages 5–10).\n- **Output directory** — optional. Default: current directory.\n\n## Procedure\n\n### 1. Check tooling\n\n```bash\ncommand -v pdftoppm >\u002Fdev\u002Fnull || {\n  echo \"pdftoppm not installed — see the image-ops-install-deps skill (poppler-utils)\" >&2\n  exit 1\n}\n```\n\n### 2. Validate PDF\n\n```bash\nfile \"$input\" \npdfinfo \"$input\" || { echo \"not a readable PDF: $input\" >&2; exit 1; }\n```\n\nIf invalid, abort. Print the page count for user awareness — it also determines the filename padding width (see step 5).\n\n### 3. Build command\n\nBase command:\n\n```bash\npdftoppm -r \"$dpi\" \"-$format\" \"$input\" \"$output_prefix\"\n```\n\n**Examples:**\n\n- All pages, JPEG at 300 DPI: `pdftoppm -r 300 -jpeg \"input.pdf\" \"output\"`\n- Pages 5–10, PNG at 150 DPI: `pdftoppm -r 150 -png -f 5 -l 10 \"input.pdf\" \"output\"`\n- All pages, TIFF at 600 DPI: `pdftoppm -r 600 -tiff \"input.pdf\" \"output\"`\n\nFlags:\n- `-r \u003CDPI>` — resolution in DPI.\n- `-\u003Cformat>` — output format: `jpeg`, `png`, `tiff`.\n- `-f \u003CN>` — first page (optional).\n- `-l \u003CN>` — last page (optional).\n\n### 4. Execute\n\n```bash\npdftoppm -r \"$dpi\" \"-$format\" $page_flags \"$input\" \"$output_prefix\" \\\n  || { echo \"pdftoppm failed on $input\" >&2; exit 1; }\n```\n\nShow progress and warn if the PDF is large (many pages or high DPI — processing may take a minute or more).\n\n### 5. Report\n\nAfter conversion:\n\n- Count of images created.\n- Output directory and filename pattern. `pdftoppm` pads the page number to the width of the total page count — a 9-page PDF gives `output-1.jpg`, a 40-page PDF gives `output-01.jpg`, a 500-page PDF gives `output-001.jpg`. Read the actual names off disk rather than predicting them.\n- File sizes and total space used.\n- If a page range was used, note which pages were extracted.\n\n## Output \u002F side effects\n\n- Numbered image files created. The zero-padding width is derived from the document's total page count (not a fixed width), and the separator is a hyphen by default.\n- Original PDF unchanged.\n\n## Notes\n\n- **Rasterization vs. embedding:** `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.\n- **DPI guidance:** 300 DPI is standard for documents and photos. 150 DPI is adequate for thumbnails or web preview. 600 DPI or higher for fine scanning or print-quality archival.\n- **Format choice:** JPEG for smaller files (good for photos within PDFs). PNG for lossless (documents with text). TIFF for professional archival (larger files, lossless, can embed metadata).\n- **Large PDFs:** Page rasterization is I\u002FO and CPU intensive. A 100-page PDF at 300 DPI can take 1–2 minutes. Warn the user before starting large jobs.\n- Depends on poppler (`apt install poppler-utils` on Debian\u002FUbuntu, `brew install poppler` on macOS). Use `image-ops-install-deps` rather than installing by hand.\n",{"name":5,"description":7,"allowed-tools":24},"Bash(pdftoppm *), Bash(pdfinfo *), Bash(command *), Bash(file *), Bash(ls *), Bash(mkdir *), Bash(wc *), Read, Write","main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fimage-ops\u002Fskills\u002Fpdf-to-images","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill pdf-to-images",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill pdf-to-images",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill pdf-to-images","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fimage-ops\u002Fskills\u002Fpdf-to-images\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]