Crates.io | pixels-cli |
lib.rs | pixels-cli |
version | 0.1.2 |
source | src |
created_at | 2024-02-28 00:11:30.779349 |
updated_at | 2024-02-28 18:20:21.613085 |
description | A simple image to webp optimization CLI |
homepage | https://revillod.dev/proyectos/pixels |
repository | https://github.com/MrRevillod/Pixels |
max_upload_size | |
id | 1155915 |
size | 120,444 |
cargo install pixels-cli
pixels-cli --input <input> --rename <filename> --quality <quality>
--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.
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