nanoimage
v0.1.2
Published
Compress, resize, convert, and clean image files from the command line
Maintainers
Readme
NanoImage CLI
Free, open-source command-line tool to compress, resize, convert, and clean image files locally.
Website: https://nanoimage.net/cli
Docs: https://nanoimage.net/docs/cli
Install
npm install -g nanoimageRequires Node.js 18+.
Commands
compress
nanoimage compress ./images --quality 80 --output ./out
nanoimage compress hero.jpg --quality 75
nanoimage compress hero.jpg --target-kb 100 --output hero-100kb.jpgresize
nanoimage resize ./images --width 1200 --output ./resized
nanoimage resize banner.jpg --width 800 --height 400 --fit coverconvert
nanoimage convert ./images --to webp --output ./webp
nanoimage convert logo.png --to jpg --background whitewebp
nanoimage webp ./public --quality 82 --remove-exifremove-exif
nanoimage remove-exif ./photos --output ./cleanOptions
All commands support:
-o, --output <dir>— output directory (default: overwrite in place)--json— print results as JSON (useful for CI/CD)
License
MIT
