Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gkaszewski/webp_converter
https://github.com/gkaszewski/webp_converter
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gkaszewski/webp_converter
- Owner: GKaszewski
- License: mit
- Created: 2023-09-11T12:24:41.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-11T12:26:38.000Z (about 1 year ago)
- Last Synced: 2023-09-11T14:14:59.546Z (about 1 year ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WEBP converter
Simple CLI tool to convert image or images to WEBP format.## Prerequisites (for building)
- Rust programming language
- Cargo package manager## Installation
Clone the repository and navigate into the project folder:
```bash
git clone https://github.com/yourusername/webp_converter.git
cd webp_converter
```Build the project using Cargo:
```bash
cargo build --release
```## Usage
### Single Image Conversion
To convert a single image, run:
```bash
./target/release/webp_converter input.jpg output.webp
```You can also specify quality:
```bash
./target/release/webp_converter input.jpg output.webp --quality=50.0
```### Batch Conversion
To convert all `.jpg` and `.png` images in a directory, run:
```bash
./target/release/webp_converter input_folder output_folder --batch
```You can also specify quality for batch conversion:
```bash
./target/release/webp_converter input_folder output_folder --batch --quality=50.0
```## Options
- `--batch`: Enables batch conversion for all `.jpg` and `.png` images in a directory.
- `--quality=VALUE`: Sets the quality of the output WebP images (0.0 - 100.0).## License
This project is licensed under the MIT License.