Skip to content
Skills Library
Documents & office · Analysis

image-recognition

/image-recognition

Use whenever an image file is attached or referenced and its real properties matter — transparency, true format, size/DPI, colors, blur, blank images, EXIF/GPS — verify with code instead of trusting vision alone.

Licence
MIT
Last repository change
13.11.2026

Assessment and security

85/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
1
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 1 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/inspect_image.py

What it does and when to use it

Use whenever an image file is attached or referenced and its real properties matter — transparency, true format, size/DPI, colors, blur, blank images, EXIF/GPS — verify with code instead of trusting vision alone.

Original author description

Use whenever an image file is attached or referenced and its real properties matter — transparency, true format, size/DPI, colors, blur, blank images, EXIF/GPS — verify with code instead of trusting vision alone.

How it works

  1. Why
  2. When to use
  3. Steps
  4. Notes
Original SKILL.md headings · 38 lines, 446 words
SKILL.md preview
---
name: image-recognition
description: Use whenever an image file is attached or referenced and its real properties matter — transparency, true format, size/DPI, colors, blur, blank images, EXIF/GPS — verify with code instead of trusting vision alone.
license: MIT
compatibility: Requires Python 3 and Pillow. NumPy is optional and adds the sharpness estimate. The agent must be able to access the image file and run local Python.
---

# Image Recognition

## Why
When an image is shown to Claude visually, a lot of real information is lost or distorted:
- The alpha channel is flattened onto white/black, so transparent areas *look* like a background.
- Exact pixel size, DPI, file format, color profile and EXIF/GPS metadata are invisible.
- Downscaled previews hide blur, compression and tiny details.

So for anything factual about an image, check the file itself with code, then use vision for *what the image shows*.

## When to use
- An image (PNG, JPG, WebP, GIF, BMP, TIFF) is attached or a path is given, and the user asks about it or wants it used somewhere (website, app, Play Store, print, merch, Shopify)
- Questions like "is this transparent?", "what size is it?", "is it good enough to print?", "is this blurry?", "what colors does it use?", "does it have location data?"
- Before resizing, compositing, cropping, uploading, or putting an image on a colored background

## Steps
1. Locate the file (attachment by name, or the user's path). Work on a copy, never the original.
2. Run the inspector from this skill's folder. Use an existing virtual environment or create and activate one with `python -m venv .venv`, then install Pillow with `python -m pip install pillow` (numpy is optional). Avoid installing packages into system Python.
   `python scripts/inspect_image.py <file1> [file2 ...] --out <scratch-dir>`
   Use `python3` instead of `python` if that is the Python 3 command on your system. Add `--json` for machine-readable output.
3. Open `<name>_on_magenta.png` from the output folder to see the real cutout — magenta = truly transparent.
4. Combine the script facts with a visual look at the image, then answer in plain words. Lead with what the user asked; mention other findings only if they matter:
   - **Transparency verdict**: REAL / NOT transparent / FAKE (checkerboard baked in) / alpha unused
   - **True format** — flag if the extension doesn't match (e.g. a PNG saved as .jpg)
   - **Size, aspect ratio, DPI**, and print size at 300 DPI when print/merch is involved
   - **Dominant colors** as hex codes (useful for brand palettes)
   - **Sharpness hint** — warn if likely blurry/soft
   - **Blank/solid image** warning
   - **Animated** frame count for GIF/WebP
   - **EXIF**: camera/software; if **GPS is present**, warn that the photo contains location data before it's shared publicly
5. When describing or editing the image afterwards, trust the script over vision: never call transparent pixels "white background" or a checkerboard "transparent".

## Notes
- Checkerboard detection and the sharpness score are heuristics — confirm with the previews when it matters.
- JPG never has transparency; say so directly.
- Reply in the user's preferred language.
Files in this package (7)
  • CONTRIBUTING.md 1 KB
  • LICENSE 1 KB
  • README.hi.md 9 KB
  • README.md 7 KB
  • SKILL.md 3 KB
  • ai-image-recognition-banner.jpg 144 KB
  • scripts/inspect_image.py 9 KB

Versions

The database has no other skills named image-recognition.

Database snapshot: 13.11.2026 · package version 8d60587074a1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pdf-to-images
    Rasterize PDF pages to numbered image files (JPEG, PNG, or TIFF) at a specified resolution (DPI). Use when you need to convert PDF content to standalone images — one image per page — with optional page range selection.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.