Guides
Guides
Task-focused walkthroughs for common asset-optimization jobs — each one runs locally with the free CLI. For the exhaustive reference, see thedocs.
Convert JPG & PNG to WebP in bulk (CLI)
Batch-convert JPG and PNG images to WebP from the command line with one tool. Preview savings first, control quality, keep originals — runs locally, MIT.
Convert images to AVIF in bulk (CLI)
Batch-convert JPG, PNG and WebP images to AVIF from the command line. Smallest modern format, keeps transparency, runs locally — free and MIT.
Compress images without losing quality
Shrink images from the command line while keeping them visually lossless — tune per-format quality, keep the original format, preserve metadata. Local and MIT.
Optimize images before deploying
Shrink your build output right before deploy — recompress images, CSS, JS and SVG in CI without breaking asset references. Works with Vercel, Netlify, any static host.
Minify CSS & JS from the command line
Minify CSS and JavaScript files in bulk from the command line — one tool that also handles images and SVG. Runs locally, no bundler config, MIT.
AVIF vs WebP: which should you use?
AVIF vs WebP compared for web images — compression, transparency, browser support and encode speed — plus how to route each source format to the right one automatically. MIT.
Optimize images in GitHub Actions (CI)
Add image and asset optimization to your CI pipeline: fail a pull request when assets aren't optimized, cache results between runs, and keep your build lean — from the command line, MIT.
Strip EXIF & metadata from images in bulk (CLI)
Remove EXIF, GPS and ICC metadata from a whole folder of images with one command — smaller files and better privacy. Runs locally, no upload, MIT.
assetopt vs imagemin
assetopt and imagemin compared: one CLI for images, CSS, JS and SVG with smart WebP/AVIF routing, incremental cache and a CI gate — versus a plugin-based Node image library. Honest, up to date, MIT.
assetopt vs Squoosh CLI
assetopt and the Squoosh CLI compared: a maintained multi-asset optimizer with smart routing, cache and a CI gate, versus Google's WASM-codec image CLI. Honest, up to date, MIT.
assetopt vs SVGO
assetopt and SVGO compared honestly — assetopt uses SVGO under the hood for SVG, and adds images, CSS, JS, smart routing, cache and a CI gate in one CLI. When to use each. MIT.