Skip to main content

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

pip install webpify

Requirements

  1. Ensure you have Python 3.9 or higher installed.

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.

Metadata

Release files for webpify 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webpify 2.0.0
File Size Uploaded Provenance Actions
webpify-2.0.0.tar.gz 4.3 kB Without provenance Details for webpify-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for webpify 2.0.0
File Interpreter ABI Platform Actions
webpify-2.0.0-py3-none-any.whl Python 3 none any Details for webpify-2.0.0-py3-none-any.whl

Total release size: 9.5 kB

Release files / webpify-2.0.0.tar.gz

Download URL webpify-2.0.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eda39590e16a923e99d84ece65e8a37999c2c57cd93507348c175685c1129029
BLAKE2b-256 checksum
How to use checksums
8fe0e085948a0415e38739a19b431a5e68a1c4d3aa0e449dfc5b8b78e3136fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Windows/11

Release files / webpify-2.0.0-py3-none-any.whl

Download URL webpify-2.0.0-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eebaba7dfdde766bfb44c206b15e0450514d88501d6ac5dcd51187bb7086a3d
BLAKE2b-256 checksum
How to use checksums
749e7008d2adc4fe0caf8cc404ec0a77aedcbaa1fd1956ad075fe1b9baf2867d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Windows/11

Security for webpify 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page