A simple cli tool to convert PNG images to WebP format with customizable quality.
you can grab the pre-built binaries from the releases page.
# Basic usage
png_to_webp -i input.png -o output.webp
# With custom quality (0-100, default is 75)
png_to_webp -i input.png -o output.webp -q 90
# With verbose output
png_to_webp -i input.png -o output.webp -vif you want to build from source:
- Make sure to have Rust installed, grab it from here.
- Clone the repository and navigate to the project directory.
- Run
cargo build --release.
The compiled binary will be available at target/release/png_to_webp or target\release\png_to_webp.exe depending on your platform.
LGPL-3.0
anything is welcome, just open an issue or a pull request. I am sure there is a lot of room for improvement.
- Github Action Template for the CI/CD workflow.