image
Installation
SKILL.md
Image
Still-image processing with ImageMagick, exiftool, and Tesseract. Use this skill when you need to modify or inspect raster images (PNG, JPEG, WebP, TIFF, etc.).
When to use
- This skill — format conversion, geometry edits (resize/crop/rotate/flip), compression, EXIF read/strip, OCR.
inspect— probe video/audio/image containers with ffprobe without changing files. Run first if you are unsure of dimensions or format.download— fetch remote media before local image processing.
Gotchas
- ImageMagick v7 — some systems expose
magickinstead ofconvert. These scripts callconvert; install theimagemagickpackage or symlinkconvert→magickif needed. - Resize without height —
--width 800with no--heightpreserves aspect ratio (800xgeometry). Specifying both forces exact dimensions (may distort). - Crop geometry —
width x height + x + yis in pixels from the top-left. Values outside the image bounds fail or return partial crops depending on ImageMagick policy. - Optimize outputs JPEG —
optimize.pyalways writes JPEG at quality 85 with metadata stripped. Useconvert.pyfor lossless PNG/WebP output. - EXIF on PNG/WebP —
read_exif.pyreturns whatever exiftool finds; synthetic or ffmpeg-generated images often have minimal metadata. - OCR quality — Tesseract works best on high-contrast, deskewed text. Preprocess with
convert(grayscale, threshold) for noisy scans. Use--langfor non-English (e.g.deu,fra). - Policy restrictions — ImageMagick
policy.xmlmay block PDF/PS reads on some Linux installs. Error mentions "not authorized".