fast-resize
/fast-resize
Use when the user wants to resize a large batch of images (>500 files) where ImageMagick throughput is the bottleneck. Wraps libvips for 5–10× faster batch resize at lower memory. Falls back to ImageMagick if `vips` isn't installed. Same outputs as `batch-resize` — different engine.
- Author
- danielrosehill ↗
- Repository
- claude-image-production-plugin ↗
- Licence
- MIT
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when the user wants to resize a large batch of images (>500 files) where ImageMagick throughput is the bottleneck. Wraps libvips for 5–10× faster batch resize at lower memory. Falls back to ImageMagick if `vips` isn't installed. Same outputs as `batch-resize` — different engine.
Original author description
Use when the user wants to resize a large batch of images (>500 files) where ImageMagick throughput is the bottleneck. Wraps libvips for 5–10× faster batch resize at lower memory. Falls back to ImageMagick if `vips` isn't installed. Same outputs as `batch-resize` — different engine.
How it works
- When to use
- Inputs
- Procedure
- Output
- Notes
SKILL.md preview
--- name: fast-resize description: Use when the user wants to resize a large batch of images (>500 files) where ImageMagick throughput is the bottleneck. Wraps libvips for 5–10× faster batch resize at lower memory. Falls back to ImageMagick if `vips` isn't installed. Same outputs as `batch-resize` — different engine. --- # Fast Resize (libvips) Batch image resize using libvips. Material throughput improvement over ImageMagick on large libraries — typical 5–10× speed-up and lower peak memory. ## When to use - Batch is >500 images. - The user is feeling ImageMagick's slowness (or is about to). - The job is "resize this directory" — pure resize without compositing or filters. Do **not** use this skill for: - Small batches (<100 images) — `batch-resize` is fine, no point swapping engines. - Resize-with-filter / resize-with-text / multi-op pipelines — ImageMagick is the better tool for compound work. ## Inputs 1. **Input directory** — required. 2. **Target size** — one of: - `--width N` — resize so width = N, height auto. - `--height N` — resize so height = N, width auto. - `--max NxM` — fit within NxM box (preserves aspect). - `--exact NxM` — force exact dimensions (may distort or crop). 3. **Output mode** — `in-place` (overwrite) or `--output-dir <path>` (default: `<input>/resized/`). 4. **Filter** — interpolation kernel: `lanczos3` (default — best quality), `cubic`, `linear`, `nearest`. 5. **Recursive** — `--recursive` to descend into subdirectories. Default: top-level only. 6. **Format preserve** — by default keeps source format. `--to <ext>` to change format on the way out. ## Procedure 1. Verify `vips` is on PATH. If missing, fall back to ImageMagick `convert` with the same parameters and warn that this will be slower (point at `install-deps`). 2. Enumerate input files (filter to image extensions: jpg, jpeg, png, webp, tiff, gif, heic, avif, jxl). 3. For each file, build the vips command. Two main forms: **Fit within box (preserves aspect):** ```bash vipsthumbnail "<input>" --size "<W>x<H>" --output "<output>[Q=85]" ``` `vipsthumbnail` is the right tool for "resize down" — it's optimised for thumbnail-style ops and handles JPEG shrink-on-load (free 8× speedup for 1/8-size targets). **Exact resize via `vips`:** ```bash vips resize "<input>" "<output>" <scale-factor> --kernel <kernel> ``` For `--width`/`--height`, compute scale = target / source. `vipsthumbnail` is preferred when shrinking; use `vips resize` when upscaling or when source dimensions vary widely. 4. Run in parallel where safe. vips is internally threaded; running multiple processes via xargs/parallel adds little. One process per CPU core is the sweet spot for large batches. 5. Report progress every N files (every 10% or every 100, whichever is more frequent). ## Output - Resized images at the resolved output paths. - Summary: `<n> files processed, <total-input-MB>MB → <total-output-MB>MB, <elapsed-s>s, avg <ms>ms/image`. - List of any files that failed (corrupt, unsupported format, permission errors). - If output-dir was used and any source files had identical names from different subdirectories without `--recursive` flattening logic, flag the collision. ## Notes - `vipsthumbnail` accepts `[Q=N]` syntax for JPEG quality on output (default 75; 85 is a good balance). - Wide colour gamut: vips preserves ICC profiles by default. If the user is processing display-P3 / Adobe RGB images, that's a feature. - HEIC / AVIF / JXL: vips supports these if compiled with the right libs (apt's `libvips-tools` includes libheif and libjxl on recent Ubuntu). - ImageMagick fallback path: if `vips` is missing, run `convert "<input>" -resize <WxH> "<output>"` per file. Same output, slower.
Versions
The database has no other skills named fast-resize.
Database snapshot: 13.11.2026 · package version 70957bb9567f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100fast-thumbnail
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. - 100media-imagemagick
Image manipulation with ImageMagick (magick / convert / mogrify / composite / identify / montage): resize, crop, rotate, convert between 200+ formats, compose layers with alpha, add text, apply effects, batch process folders, color operations, PDF/PSD/HEIC/AVIF/JXL support. Use… - 100imagemagick-conversion
ImageMagick image manipulation: format conversion, resizing, batch processing, quality. Use when converting, resizing, batch-processing, or generating thumbnails. - 100media-processing
Processes existing video, audio and images with ffmpeg, libvips, sharp, ImageMagick or Pillow. Use when transcoding, cutting or concatenating video, normalising loudness, packaging HLS or DASH, extracting frames or thumbnails, batch-resizing images, or an output is unplayable or… - 100imagemagick
Edit and convert images with the ImageMagick `magick` CLI — resize, crop, convert format, compress, rotate, montage, annotate. Use for any still-image transformation. - 100imagemagick
ImageMagick is a command-line toolkit for converting, resizing, cropping, compositing and inspecting images in over 200 formats. Use it to batch resize photos, convert PNG or SVG to WebP, generate thumbnails, add watermarks, build contact sheets and animated GIFs, or read image…