#image #webp #cli

app pixels-cli

A simple image to webp optimization CLI

3 releases

0.1.2 Feb 28, 2024
0.1.1 Feb 28, 2024
0.1.0 Feb 28, 2024

#7 in #webp

47 downloads per month

MIT license

105KB
144 lines

Image optimization CLI

Optimize your images to webp with a simple CLI

Installation

cargo install pixels-cli

Usage

pixels-cli --input <input> --rename <filename> --quality <quality>

Options

  • --input or -i: The input file or directory

  • --rename or -r: The new filename, only new filename without extension

  • --quality or -q: The quality of the image, from 1 to 80 (default 80), can be higher until 100, but it's not recommended for small images because the file size will be too big.

Optional

If the name pixels-cli is too long for you, you can create an alias for the command, in this case for bash:

echo "alias your-alias=pixels-cli" >> ~/.bashrc

Dependencies

~22–29MB
~188K SLoC