https://github.com/playerony/image-optimizer-cli
Simple CLI written to optimize images with following extensions: jpg, gif, svg, png. Under the hood, it uses a imagemin packages.
https://github.com/playerony/image-optimizer-cli
cli imagemin imagemin-gifsicle imagemin-mozjpeg imagemin-pngquant node node-js nodejs optimization optimization-algorithms yargs
Last synced: about 1 month ago
JSON representation
Simple CLI written to optimize images with following extensions: jpg, gif, svg, png. Under the hood, it uses a imagemin packages.
- Host: GitHub
- URL: https://github.com/playerony/image-optimizer-cli
- Owner: playerony
- Created: 2021-09-14T15:29:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-17T20:16:32.000Z (over 4 years ago)
- Last Synced: 2025-01-02T18:02:39.007Z (over 1 year ago)
- Topics: cli, imagemin, imagemin-gifsicle, imagemin-mozjpeg, imagemin-pngquant, node, node-js, nodejs, optimization, optimization-algorithms, yargs
- Language: JavaScript
- Homepage:
- Size: 1.95 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image-optimizer-cli
Simple CLI written to optimize images with following extensions: jpg, gif, svg, png. Under the hood, it uses a [imagemin](https://www.npmjs.com/package/imagemin) packages.
## bootstrap
```bash
git clone https://github.com/playerony/image-optimizer-cli.git
cd image-optimizer-cli
npm install
```
## register globally as a CLI (not required)
After installation just invoke `npm install -g` to register a new CLI. You'll get global access to `image-optimizer` command.
## usage
```bash
image-optimizer -s=images -d=optimised
```
* Options:
-s, --source -> source directory with images to optimize [string] [required]
-d, --destination -> the folder where you want to save the optimized images [string] [required]
## license
MIT