extract-text-from-image

Extract text from images, scanned documents, and PDFs using Tesseract OCR.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/SillyHippy/zo-skills --skill extract-text-from-image-sillyhippy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: extract-text-from-image
Source: https://github.com/SillyHippy/zo-skills/tree/main/skills/zo-extract-text-from-image
Command: npx skills add https://github.com/SillyHippy/zo-skills --skill extract-text-from-image-sillyhippy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Scanned documents, screenshots, and image-based PDFs contain text that cannot be copied or searched directly, forcing manual retyping. This Skill converts those images into machine-readable text using Tesseract OCR. ## Core Features & Use Cases - Image OCR: Extract text from PNG, JPG, TIFF, and other image formats with a single Tesseract command. - Image Preprocessing: Improve accuracy on low-quality scans using ImageMagick resizing, grayscale conversion, and sharpening. - PDF Conversion: Convert image-based PDFs to page images with Ghostscript/ImageMagick and OCR each page into a combined text file. - Multi-language Support: Recognize text in multiple languages by installing Tesseract language packs (e.g., French, German, Spanish). - Use Case: You receive a scanned contract as a PDF. Use this Skill to convert each page to an image, run OCR, and save the full extracted text to a file for review. ## Quick Start Extract all text from the scanned document at /path/to/scan.pdf and save it to a text file.

Frequently Asked Questions about extract-text-from-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from an image using Tesseract OCR?▼

Install tesseract-ocr via apt, then run tesseract followed by the image path and an output file name. The recognized text is written to the output file, which you can read or save for the user.

How to OCR a scanned PDF that has no text layer?▼

Convert the PDF pages to images first using ImageMagick with 300 DPI density, then run Tesseract on each page image. Concatenate the per-page text outputs into a single combined text file.

Does Tesseract OCR support languages other than English?▼

Yes, Tesseract supports multiple languages through installable language packs such as tesseract-ocr-fra, tesseract-ocr-deu, and tesseract-ocr-spa. Pass multiple language codes with the -l flag, for example -l eng+fra+deu+spa.

Why is OCR accuracy poor on my scanned image?▼

OCR accuracy depends heavily on image quality, resolution, and contrast. Preprocess the image with ImageMagick by resizing to 150%, converting to grayscale, and sharpening before running Tesseract to improve results.

What are the limitations of Tesseract OCR?▼

Tesseract works best on high-resolution scans with clear dark text on light backgrounds. Handwriting, heavy noise, skewed layouts, and low-contrast images produce unreliable output even with preprocessing.