Index of every page on this site: llms.txt
All skills
oaustegard avatar

/transcribing-images

@b9eb735
Run it yourself

Reads the visual content of slides, pages, and images the way a human would, not just their embedded text. Use when a PPTX or PDF has image slides, screenshots, charts, scanned figures, or flattened-to-image layouts that the built-in pptx/pdf skills read as empty; when asked to transcribe, describe, OCR, or extract what is shown in an image, slide deck, or document page; or when embedded-text extraction returned little or nothing from a visually rich file. Triggers on 'read this deck', 'what's on these slides', 'transcribe', 'OCR', 'extract text from image', 'describe this chart/diagram', .pptx/.pdf/.png/.jpg with visual content.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/transcribing-images

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈165 tokens for metadata: the name and description. ≈1.2k when used: this file. ≈422 more on demand in 1 file.

Description uses 8.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈659 characters, or 8.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Transcribing Images

Read what a slide, page, or image actually shows — text plus charts, diagrams, screenshots, and layout — by rasterizing it and sending the picture to a vision model. This is the fix for the gap the built-in pptx and pdf skills leave: they extract embedded text only, so an image slide, a chart, or a scanned figure reads as empty. Visual transcription reads it the way a person looking at the slide would.

When to reach for this vs. the built-in skills

Use the pptx / pdf skills first for text-native documents — a normal deck or report where the content is real text boxes. They are faster and exact.

Switch to this skill when text extraction comes back thin or empty on a file you can see is visually rich, or whenever the meaningful content is a picture: chart, graph, diagram, screenshot, photo, scanned page, or a slide exported as one flat image. Don't guess which case you're in — if pptx/pdf returned little from a file that clearly has content, that is the signal.

The pipeline

Everything routes through scripts/transcribe_pages.py, which handles all three ingress paths and one bad page never aborts the rest:

  • .pptx / .ppt → LibreOffice headless → PDF → pdftoppm → one PNG per slide
  • .pdf → pdftoppm → one PNG per page
  • image file → used directly as a single page

Each page image is then transcribed by a vision model. Run it directly:

python3 scripts/transcribe_pages.py deck.pptx                  # all slides
python3 scripts/transcribe_pages.py report.pdf --pages 3-7     # subset
python3 scripts/transcribe_pages.py slide.png --model opus     # one image
python3 scripts/transcribe_pages.py deck.pptx --json out.json  # structured

Or import transcribe_file(...) for programmatic use; it returns a list of {page, image, text, error} dicts.

Choosing the model

The transcription core and its empirical cost/recall data are reused from browsing-bluesky/scripts/image_transcribe.py — same registry, kept in sync. Pick with --model:

  • gemini-lite (default) — gemini-3.5-flash-lite. Cheapest and fastest: ~$0.0009 and ~2s per image on 3 synthetic terminal screenshots (2026-11-20), where it read every token. Dense slides cost more. Right for routine deck reading.
  • gemini-flash — gemini-4-hydrogen at thinking level low. About 8x the cost and 3x the latency of lite. Use when a page needs interpretation, not just reading. (--model gemini-3.5-flash also runs gemini-4-hydrogen: the 3.5 Flash model is retired, and the name is kept so existing commands work.)
  • opus — for interactive sessions where you want the reading in your own context anyway.
  • haiku — only if constrained to single-vendor Anthropic; weak at dense transcription (tends to summarize instead of transcribe). That finding is from Haiku 4.5; the alias calls claude-haiku-5-5, which has not been measured.

Default to gemini-lite. Move to gemini-flash when a page needs interpreting, and to opus when the reading belongs in an interactive conversation.

OCR fallback (tesseract)

Tesseract 5.x is installed (eng + osd language packs only) and is exposed as --engine tesseract. It returns glyphs, not a reading — no chart interpretation, no diagram description, no layout meaning. Use it only for pages you already know are plain scanned text, when you want a zero-cost, fully-offline pass. For anything with a chart, diagram, or visual layout, the vision path is the correct tool; tesseract on those pages will quietly lose the content that mattered.

When the deliverable is a file rather than a reading, use ocring-pdfs instead. It installs ocrmypdf at runtime (~18s) and writes the OCR back as an invisible text layer over the original page images, so the output is a PDF that pdftotext and grep can read. The --engine tesseract path here returns loose text with no page anchoring.

Interactive shortcut

In an interactive session you can often skip the model call entirely: rasterize with scripts/transcribe_pages.py … --json to get the page PNGs, or just convert and view each page image yourself — Claude reads images natively. The script's vision-model path exists for batch and autonomous runs where no human-in-loop reader is available, or when a deck has more pages than is practical to view one by one.

DPI

Default raster is 150 DPI — legible for a vision model and safely under the 5 MB/image base64 ceiling. Bump to --dpi 200–300 only for pages with dense small fonts; higher DPI risks exceeding the per-image size limit and costs more tokens for no gain on normal slides.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2d3 checks · Risk SAFE
  • Gen Agent Trust Hub2d

    The skill is safe for its intended use of transcribing visual content from documents and images. The primary security consideration is indirect prompt injection, where instructions visually embedded in processed files could potentially influence the transcription output.

  • Socket1mo

    No alerts

  • Snyk2d

    Risk: MEDIUM · 1 issue

Signed by skilld at b9eb735. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 days ago
metadata
{
  "version": "0.3.1"
}

README badge

README badge for oaustegard/claude-skills/transcribing-images