Converts images to webp
Project description
Webpify
Webpify is a simple Python application that converts images to the WebP format. It supports various image formats and allows you to customize the quality of the output images.
Features
- Convert images from common formats (JPEG, PNG, GIF) to WebP.
- Skip already converted WebP images.
- Specify custom quality for the WebP images.
- Flexible input and output directory options.
Installation
- Ensure you have Python 3.9 or higher installed.
- Install Webpify using pip:
pip install webpify
Usage
Run the application from the command line:
python -m webpify [path] [-o OUTPUT] [-q QUALITY] [-m MIME_TYPES] [-s SKIP_TYPES] [--delete]
Arguments:
path: Path to the directory containing images (default: current directory).-o, --output: Output directory for converted images (default: current directory).-q, --quality: Quality of the WebP images (default: 80).-m, --mime-types: List of image MIME types to convert (default: JPEG, PNG, GIF).-s, --skip-types: List of image MIME types to skip (default: WebP).--delete: Delete original files after conversion.
Example:
Convert all images in the images folder to WebP format with 90% quality, save them in the output folder, and delete the original files:
python -m webpify images -o output -q 90 --delete
Dependencies
- Python >= 3.9
- Pillow >= 11.1.0, < 12.0.0
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webpify-0.2.0.tar.gz.
File metadata
- Download URL: webpify-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2d9b52da7ddf3fee1e9860b6fe53c6b8b781e65273067d75a78548aae79f6e9
|
|
| MD5 |
97bfad8d1bf1872a652d0c9004a8d792
|
|
| BLAKE2b-256 |
a156dda82f69b15c450253b4152fcdfc6a571632c8a1f9cb88bc00c1b253ea1b
|
File details
Details for the file webpify-0.2.0-py3-none-any.whl.
File metadata
- Download URL: webpify-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
750b49cfdcbb96c57726d4403e10b5efb1801e1fd6bcdc1ab09aafe7a341cc78
|
|
| MD5 |
8eea8c52b5a1af517a27a560da978f8a
|
|
| BLAKE2b-256 |
9d075135d284b743f05718293ac3277f70fb17be29b1e5dd118fc9f86fed4dce
|