agentleFS
danielrosehilldanielrosehill/Claude-Image-Production-Plugin/skills/fast-thumbnail/SKILL.md

fast-thumbnail

Skill21 starsChanged 7 days agoMITView on GitHub

Use when the user wants to generate thumbnails at scale — index views, contact sheets, web previews, or just shrinking a library to manageable sizes. Wraps `vipsthumbnail` for sub-second-per-image generation, much faster than ImageMagick on large batches.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use this skill when:

    line 16
  2. Very specific:

    Verify vipsthumbnail is on PATH.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fast Thumbnail (vipsthumbnail)

Generate thumbnails at high throughput using vipsthumbnail. Distinct from fast-resize: this is purpose-built for "make small previews of every image in this folder" workflows where output is always a downscale and quality is "good enough for a thumbnail".

When to use

  • Building a contact-sheet / web-gallery / index of an image library.
  • Pre-rendering thumbnails for a UI / filesystem browser.
  • Bulk-shrinking large originals to share / archive.

Do not use this skill when:

  • The user wants the same size as the originals — that's a no-op.
  • The user is upscaling — use fast-resize (or upscale-image for AI upscale).
  • The user wants to keep original quality — this skill assumes lossy thumbnail-grade output.

Inputs

  1. Input directory — required.
  2. Size — pixel size. Single number is shorthand for NxN (fit within square). Default: 512.
  3. Output dir — default: <input>/thumbnails/. The skill never overwrites originals.
  4. Format — output format. Default: jpg (best size/quality balance for thumbs). Options: jpg, png, webp, avif.
  5. Quality — JPEG/WebP/AVIF quality. Default: 80.
  6. Recursive — --recursive to descend. Mirrors subdirectory structure under the output dir.
  7. Naming — default: same base name. --prefix <s> or --suffix <s> if collision is a risk.

Procedure

  1. Verify vipsthumbnail is on PATH. If missing, point at install-deps. No graceful fallback — if vips isn't installed, the skill's whole reason to exist is gone; tell the user to install or use batch-resize.
  2. Enumerate input files (image extensions only).
  3. For each file:

    vipsthumbnail "<input>" \
      --size "<size>" \
      --output "<output-dir>/<basename>.<ext>[Q=<quality>]"

    For non-JPEG outputs, the [Q=N] syntax still works for WebP/AVIF.

  4. For very large batches, parallelise with find ... | xargs -P <ncpu> -I{} vipsthumbnail .... vips is internally threaded but per-image work is small enough that process-level parallelism wins on >5k batches.
  5. Track progress and skipped files (corrupt, wrong format).

Output

  • Thumbnails at <output-dir>/.
  • Summary: <n> thumbnails, <total-output-MB>MB, <elapsed-s>s, avg <ms>ms/image.
  • Failed files listed.

Notes

  • vipsthumbnail shrink-on-load: for JPEG sources, it decodes at the smallest DCT scale ≥ target — so generating a 256-px thumbnail from a 4000-px JPEG is much faster than full decode + resize. This is the headline reason to use it.
  • Sharpen-on-shrink is on by default (vipsthumbnail applies a mild sharpen after downscale). Add --no-rotate and explicit --linear flags only if Daniel asks; the defaults are sensible for thumbnails.
  • For contact-sheet layout (multiple thumbs into a grid image), this skill produces the inputs; combine with ImageMagick montage separately.
  • ICC handling: vipsthumbnail strips ICC by default to keep file sizes small (right call for thumbs). If colour-accurate thumbs are needed, pass --export-profile <path-to-srgb.icc>.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.