Does NanoImage CLI upload my images?
No. CLI processing happens entirely on your local machine. Files are never sent to any server.
Compress, resize, convert, and clean image files locally with a simple command-line tool.
npm install -g nanoimagenanoimage compress ./images --quality 75 --output ./compressed
nanoimage webp ./public --quality 82 --remove-exif
nanoimage resize hero.jpg --width 1200 --output hero-1200.jpgFiles never leave your machine. No uploads, no server.
Process entire folders with a single command.
Convert any image to WebP for smaller web assets.
Drop it into build scripts and GitHub Actions.
Machine-readable results for automation workflows.
Clean metadata from images before publishing.
compressReduce image file size with quality control.nanoimage compress photo.jpg --quality 75 --output photo-compressed.jpgresizeChange image dimensions by pixels, percentage, or max width.nanoimage resize hero.jpg --width 1200 --output hero-1200.jpgconvertConvert images between JPG, PNG, and WebP.nanoimage convert logo.png --to jpg --output logo.jpgwebpFast WebP conversion for web-ready images.nanoimage webp photo.jpg --quality 80 --output photo.webpremove-exifStrip metadata from images before sharing.nanoimage remove-exif photo.jpg --output photo-clean.jpgNo. CLI processing happens entirely on your local machine. Files are never sent to any server.
Yes. Use commands in npm scripts, build pipelines, or GitHub Actions. The --json flag gives machine-readable output for automation.
CLI v1 focuses on JPG, PNG, and WebP. More formats may be added in future versions.
Yes. Pass a directory as input and an output directory. Directories are processed recursively by default.