0.2.0 • Published 3 years ago

maloha v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

maloha

Simple wrapper around squoosh to compress images down to a specific target size.

oclif Version Downloads/week License

Usage

$ npm install -g maloha
$ maloha --help
convert and optionally compress and resize images

USAGE
  $ maloha [FOLDER]

OPTIONS
  -f, --format=(jpg|webp)  [default: jpg] output format
  -h, --help               show CLI help
  -s, --size=size          target size in kb
  -v, --version            show CLI version
  -w, --width=width        maximum width in pixels

If no folder argument is provided, the current working directory will be used.
Converts all image files in the chosen output format and saves them in a new folder.
If a size argument is provided, the images will be compressed to that size
while keeping the quality as high as possible.
The width argument can be used to additionally resize all images with a width above
the given value while maintaining the aspect ratio.