Skip to main content
Agent skill

Image To Text

Converts one or more images into faithful text descriptions or OCR with the local 1.3B MiniCPM-V 4.6 GGUF model through llama.cpp, automatically preferring an available Vulkan GPU and falling back to CPU. Use when the user asks to describe, caption, compare, transcribe, inspect, or extract visible details and text from PNG, JPEG, WebP, GIF, BMP, or TIFF images without a GPU or remote vision API.

Get started

Get the complete skill folder, including its scripts and reference files.

When to use this skill

Use Image To Text when an AI agent needs a reusable SKILL.md workflow for this job: Converts one or more images into faithful text descriptions or OCR with the local 1.3B MiniCPM-V 4.6 GGUF model through llama.cpp, automatically preferring an available Vulkan GPU and falling back to CPU. Use when the user asks to describe, caption, compare, transcribe, inspect, or extract visible details and text from PNG, JPEG, WebP, GIF, BMP, or TIFF images without a GPU or remote vision API.

When not to use it

Skip Image To Text when the task is outside the productivity category, or when a more specific skill in this directory already covers the same workflow with clearer triggers.

How to install

Where will you use it?

Install scope
Claude Code folder setup
mkdir -p ~/.claude/skills/image-to-text
# Save SKILL.md to ~/.claude/skills/image-to-text/SKILL.md
  1. Claude Code personal install: place the skill and its bundled files at ~/.claude/skills/image-to-text/SKILL.md. For a shared project, commit the folder at .claude/skills/image-to-text/ instead.
  2. Current Claude Code detects SKILL.md changes in watched directories during the session. If you just created a top-level skills directory, run /reload-skills. Check that the skill is listed before testing its trigger.
  3. For Claude chat or Cowork in the Desktop app, manage uploaded skills in Customize > Skills; copying files into a local Claude Code folder is not a Desktop install. Other agents may use different install locations.

Full install guide for Claude, Cursor, and Codex →

Try a starter prompt

After installing the skill, paste this starter prompt into your agent to verify it triggers on a small task.

Starter prompt
Use the Image To Text skill for this task: Use Image To Text when this documented workflow matches the task. Confirm any required inputs or files before making changes.

What supports this recommendation?

70/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
77/100
Practical detail
68/100
Source evidence
61/100
Source signals
72/100
Model compatibility evidence
  • claudeinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • chatgptinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • geminiinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • copilotinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • llamainferred

    The skill text mentions Llama or a closely associated term. This is keyword-derived compatibility; no hands-on model test is recorded.

  • perplexityinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • mistralinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

  • grokinferred

    The skill uses model-agnostic prompt or LLM terminology. Portability is inferred and has not been verified on this model.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

What this skill does

# Image to Text

Run the official `openbmb/MiniCPM-V-4.6-gguf` Q4_K_M model locally with llama.cpp. Do not send images to remote APIs.

## Rules

Read and follow [skill-dependency-manager](../skill-dependency-manager.md) before running commands.

- Run `.ai/image-to-text/image_to_text.py` through the default `python` manifest entry only. - Load the language model and multimodal projector only from `.dependency/minicpm-v-4.6/model`. - Before inference, check the `llama-cpp-gpu` runtime with `--list-devices`. Prefer it when a Vulkan device is reported; otherwise use `llama-cpp-cpu`. - Use `--gpu` or `-GPU` to require GPU inference and fail when unavailable. - Use `--cpu` to bypass detection and force CPU inference for troubleshooting or comparison. - Preserve observable facts and clearly distinguish uncertainty from fact. - Pass related images after one `--images` or `--image` option; both names are equivalent.

## Usage

```powershell .dependency/python/python.exe .ai/image-to-text/image_to_text.py --images C:\path\photo.png ```

```powershell .dependency/python/python.exe .ai/image-to-text/image_to_text.py --images before.png after.png --prompt "Compare these images and list only visible changes." ```

```powershell .dependency/python/python.exe .ai/image-to-text/image_to_text.py --image C:\path\photo.png -GPU ```

```powershell .dependency/python/python.exe .ai/image-to-text/image_to_text.py --image C:\path\photo.png --cpu ```

Use `--output description.md` to also save UTF-8 text. See [cli/image-to-text.md](../../../cli/image-to-text.md) for copy-paste commands.

## Output guidance

- General description: mention scene, subjects, actions, composition, colors, and legible text. - OCR: preserve reading order and line breaks where practical; mark uncertain characters with `[unclear]`. - Accessibility alt text: be concise and omit decorative speculation. - Structured extraction: request JSON explicitly and validate it before presenting it as machine-readable. - Never identify a real person from appearance alone or infer sensitive traits not explicitly visible as text.

## Troubleshooting

- Missing CPU runtime: verify `.dependency/llama-cpp-cpu/llama-mtmd-cli.exe` exists. - GPU unavailable: verify `.dependency/llama-cpp-gpu/llama-mtmd-cli.exe` exists and `--list-devices` reports a Vulkan device. Update the graphics driver if necessary. - Missing model: verify `MiniCPM-V-4_6-Q4_K_M.gguf` and `mmproj-model-f16.gguf` exist under `.dependency/minicpm-v-4.6/model`. - Out of memory: close other applications or process fewer/smaller images; the official GGUF listing states approximately 2GB memory, but working memory varies with image size and context. - Slow inference: CPU speed, core count, memory bandwidth, and image resolution directly affect latency.

Intended uses

  • Use Image To Text when this documented workflow matches the task.

Implementation notes

  • Review the source instructions and adapt inputs before running the workflow.

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.