#webp #image #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

#2733 in Command line utilities

Download history 11/week @ 2024-09-23

74 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

~11–16MB
~171K SLoC