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.
In this repository28 other files it gives its agents.
- ai-graphicsSkill
- auto-deskewSkill
- auto-toneSkill
- auto-white-balanceSkill
- batch-set-copyrightSkill
- check-model-pricingSkill
- convert-to-avifSkill
- fast-resizeSkill
- from-jxlSkill
- images-to-pdfSkill
- install-depsSkill
- new-projectSkill
- new-workflowSkill
- open-workspaceSkill
- optimize-jpegSkill
- optimize-pngSkill
- pdf-extract-embedded-imagesSkill
- pdf-to-imagesSkill
- read-metadataSkill
- scrub-metadataSkill
- set-metadataSkill
- svg-to-rasterSkill
- to-jxlSkill
- transcode-jpeg-to-jxl-losslessSkill
- upscale-imageSkill
- vectorizeSkill
- web-readySkill
- workspace-setupSkill
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
- Distinctive: line 16
Do not use this skill when:
- Very specific: line 33
Verify vipsthumbnail is on PATH.
≈ “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.
Files
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(orupscale-imagefor AI upscale). - The user wants to keep original quality — this skill assumes lossy thumbnail-grade output.
Inputs
- Input directory — required.
- Size — pixel size. Single number is shorthand for
NxN(fit within square). Default:512. - Output dir — default:
<input>/thumbnails/. The skill never overwrites originals. - Format — output format. Default:
jpg(best size/quality balance for thumbs). Options:jpg,png,webp,avif. - Quality — JPEG/WebP/AVIF quality. Default:
80. - Recursive —
--recursiveto descend. Mirrors subdirectory structure under the output dir. - Naming — default: same base name.
--prefix <s>or--suffix <s>if collision is a risk.
Procedure
- Verify
vipsthumbnailis on PATH. If missing, point atinstall-deps. No graceful fallback — if vips isn't installed, the skill's whole reason to exist is gone; tell the user to install or usebatch-resize. - Enumerate input files (image extensions only).
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.- 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. - 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
vipsthumbnailshrink-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-rotateand explicit--linearflags 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
montageseparately. - 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>.
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.

