image
Skill1 starsChanged 4 months agoMITView on GitHub
Convert, resize, crop, rotate, flip, optimize, read EXIF, strip metadata, and OCR images using ImageMagick, exiftool, and Tesseract. Use when you need to transform still images, reduce file size, inspect camera metadata, remove sensitive EXIF before sharing, or extract text from screenshots and scans.
- Installs packages
28 other projects use a version of this.
Adopted by
Most recently taken up by
- karero/website-buildertheir own version, first seen Oct 5, 2026
- guaardvark/guaardvarktheir own version, first seen Sep 30, 2026
- productionx-in/Core-Skillstheir own version, first seen Sep 29, 2026
- vercel-labs/json-rendertheir own version, first seen Sep 23, 2026
- AayanHetam/chess-coach-aitheir own version, first seen Sep 21, 2026
- smixs/visual-skillstheir own version, first seen Sep 16, 2026
Used with
Projects with it also use paywalls, popups and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CesarjoquinSkillpaywalls
When the user wants to create or optimize in-app paywalls, upgrade screens, upsell modals, or feature gates. Also use when the user mentions "paywall," "upgrade screen," "upgrade modal," "upsell," "feature gate," "convert free to paid," "freemium conversion," "trial expiration screen," "limit reached screen," "plan upgrade prompt," "in-app pricing," "free users won't upgrade," "trial to paid conversion," or "how do I get users to pay." Use this for any in-product moment where you're asking users to upgrade. Distinct from public pricing pages (see cro) — this focuses on in-product upgrade moments where the user has already experienced value. For pricing decisions, see pricing.
Also in 9 projects that use this
CesarjoquinSkillpopups
When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.
Also in 9 projects that use this
ScaleBrickSkillcompetitors
Audit competitors using ScaleBrick's 3-surface framework (social, web/pages, SEO). Categorizes their pricing, features, and landing pages. Identifies gaps you can exploit, positioning angles no one is claiming, and specific moves you can make this week.
Also in 10 projects that use this
roerohanSkillemails
When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding.
Also in 10 projects that use this
- +8 more from Cesarjoquin
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- coreyhaines31/marketingskills★ 53ksame name
- vercel-labs/json-render★ 18ksame name
- smixs/visual-skills★ 473same name
- guaardvark/guaardvark★ 247same name
- Cesarjoquin/Marketing-Skills★ 197same name
- zjunlp/Mechanist★ 78same name
- LOGIN-TB/claude-skills★ 76same name
- Rylaispirit/rylai-codex-hermes-skills★ 59same name
- open-fox/agents★ 55same name
- rainday/smart-blog-skills★ 35same name
18 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- site/CLAUDE.mdCLAUDE.md
- audioSkill
- captions-complianceSkill
- downloadSkill
- forced-narrative-exactSkill
- inspectSkill
- install-media-toolsSkill
- program-masterSkill
- shotsSkill
- speech-captionsSkill
- subtitlesSkill
- timecodeSkill
- video-transformationSkill
- vision-analysisSkill
- audioSkill
- captions-complianceSkill
- downloadSkill
- forced-narrative-exactSkill
- imageSkill
- inspectSkill
- install-media-toolsSkill
- program-masterSkill
- shotsSkill
- speech-captionsSkill
- subtitlesSkill
- timecodeSkill
- video-transformationSkill
- vision-analysisSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
If your tools showed a filesystem path when loading this SKILL.md, strip SKILL.md and use that folder.
- Very specific: line 44
If you already ran another mediaskills script (for example .../audio/scripts/extract.py), this skill is a sibling of that folder: same …
- Very specific: line 67
Prefer absolute paths for --input / --output when cwd is uncertain.
- Distinctive: line 72
Before running any script, treat these two failures differently:
- Very specific: line 75
Only escalate sandbox permissions if the error is explicitly a permission denial (e.g.
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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".
Running scripts
This skill's scripts live in scripts/ alongside this file. Before running any script, resolve its absolute path from this skill's own directory — do not assume the shell cwd is the skill folder, the repo root, or the workspace. Stay in the workspace (so media paths resolve) and pass the absolute script path to uv run:
uv run <skill_directory>/scripts/convert.py --input "<path-to-image>" --format jpg<skill_directory> is a placeholder. Never pass those angle brackets to the shell — the command will fail. Replace it with a real absolute directory before invoking uv run.
How to get that directory (do this yourself; do not ask the user first; do not skip the skill):
- If your tools showed a filesystem path when loading this
SKILL.md, stripSKILL.mdand use that folder. - If you already ran another mediaskills script (for example
.../audio/scripts/extract.py), this skill is a sibling of that folder: same parent, directory nameimage. - Otherwise search standard install locations and confirm the script exists:
NAME=image
for d in \
"$HOME/.agents/skills/$NAME" \
"$HOME/.cursor/skills/$NAME" \
"$HOME/.codex/skills/$NAME" \
"$HOME/.claude/skills/$NAME" \
"$PWD/.agents/skills/$NAME" \
"$PWD/.cursor/skills/$NAME" \
"$PWD/skills/$NAME"
do
if [ -f "$d/SKILL.md" ] && [ -e "$d/scripts/convert.py" ]; then
SKILL_DIR=$(cd "$d" && pwd)
break
fi
done
[ -n "$SKILL_DIR" ] || { echo "mediaskills: $NAME not found" >&2; exit 1; }
uv run "$SKILL_DIR/scripts/convert.py" --input "<path-to-image>" --format jpgPrefer absolute paths for --input / --output when cwd is uncertain.
Missing binaries vs permissions
Before running any script, treat these two failures differently:
- If a required binary (
uv,convert,exiftool,tesseract) reportsNo such file or directoryorcommand not found: this is a missing or unreachable binary, not a permissions issue. Escalating sandbox permissions will not fix it. Runcommand -v uv,command -v convert,command -v exiftool, andcommand -v tesseractto see whether they resolve at all. If not, install or re-link them (install-media-toolsdoctor/install) rather than retrying with wider permissions.tesseractis required forocr.py; other scripts need ImageMagickconvertand/orexiftool. - Only escalate sandbox permissions if the error is explicitly a permission denial (e.g.
Operation not permitted,Permission denied).
Recipes
Convert PNG to JPEG
uv run <skill_directory>/scripts/convert.py --input photo.png --format jpgResize for web (max width 1200, keep aspect)
uv run <skill_directory>/scripts/resize.py --input hero.png --width 1200Crop a thumbnail from coordinates
uv run <skill_directory>/scripts/crop.py --input photo.jpg --width 400 --height 400 --x 100 --y 50Rotate 90° clockwise
uv run <skill_directory>/scripts/rotate.py --input scan.png --degrees 90Mirror horizontally
uv run <skill_directory>/scripts/flip.py --input photo.png --direction horizontalShrink file size for sharing
uv run <skill_directory>/scripts/optimize.py --input large.pngRead camera metadata before editing
uv run <skill_directory>/scripts/read_exif.py --input IMG_1234.jpgStrip GPS and camera info before upload
uv run <skill_directory>/scripts/strip_metadata.py --input IMG_1234.jpgOCR text from a screenshot
uv run <skill_directory>/scripts/ocr.py --input screenshot.pngTroubleshooting
| Error / symptom | Likely cause | Action |
convert not found | ImageMagick not installed | Run install-media-tools or brew install imagemagick |
exiftool not found | exiftool missing | brew install exiftool / apt install libimage-exiftool-perl |
tesseract not found | OCR binary missing | brew install tesseract / apt install tesseract-ocr |
not authorized | ImageMagick policy block | Edit /etc/ImageMagick-*/policy.xml or use a different input format |
| Empty OCR text | Low contrast or wrong language | Preprocess image; try --lang |
| Distorted resize | Both width and height set | Omit --height to preserve aspect ratio |
Available scripts
| Script | Purpose |
scripts/convert.py | Change image format |
scripts/resize.py | Scale to width/height |
scripts/crop.py | Extract rectangular region |
scripts/rotate.py | Rotate by degrees |
scripts/flip.py | Mirror horizontal or vertical |
scripts/optimize.py | Compress to JPEG, strip metadata |
scripts/read_exif.py | Read metadata as JSON |
scripts/strip_metadata.py | Remove metadata, write clean copy |
scripts/ocr.py | Extract text with Tesseract |
Acceptance checks (agent must pass before delivery)
- Contract: exit 0,
ok: true, everyoutput_pathsentry exists and is non-empty. - Spot-check: open the output still — dimensions/format match request; OCR text is readable for the intended region when using
ocr.py. - On failure: fix or escalate; do not present zero-byte or wrong-geometry images as complete.
Do not use for
- Video timeline edits (use
video-transformation) - PDF or vector graphics
- RAW/developed photo workflows (develop first, then
convert.py)
Related skills
inspect— probe dimensions and format before editingdownload— fetch images from URLsinstall-media-tools— install ImageMagick, exiftool, tesseract
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

