CLI tool to compress image folders or convert them to WebP. Current version 2.1.0, updated sporadically. Copies an input directory, then compresses or converts images to WebP, leaving originals untouched. Supports beautifying output directory structure. Works on whole folders at once, requires Node >=18. Differentiator: simple CLI for batch folder processing, no extra WebP package needed after install.
npm install images-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install globally, then compress or convert folders via CLI or programmatic API with minifyImages.
Use named import: const { minifyImages } = require('images-minifier')Run command as: imini <input> <output>
Test with small folder first; consider manual folder rearrangement.
Ensure output disk space is at least double the input size.
Upgrade Node to v18 or later.
Run 'npm install sharp' or reinstall images-minifier with 'npm install -g images-minifier --build-from-source'
Install globally: 'npm install -g images-minifier'
Use: const { minifyImages } = require('images-minifier')Check the input path and ensure it exists: ls <input_dir>