Skip to main content

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

  1. Ensure you have Python 3.9 or higher installed.
  2. 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]

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).

Example:

Convert all images in the images folder to WebP format with 90% quality and save them in the output folder:

python -m webpify images -o output -q 90

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

webpify-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webpify-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file webpify-0.1.0.tar.gz.

File metadata

  • Download URL: webpify-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Windows/11

File hashes

Hashes for webpify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da313a22fddc6e60f8663226cf123b4c1fcc5ae8b39222e12c410f07fc961952
MD5 4d3ed2e86c5ace5ce88be7f2eb722b27
BLAKE2b-256 55356fff29fddf925e5df8266e901912550a33e09046e2d3d36e46107920aec5

See more details on using hashes here.

File details

Details for the file webpify-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: webpify-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Windows/11

File hashes

Hashes for webpify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecefc7a3ac95dc967ba5374f01a5eda627048c8cc8d6fe81f8c751046c990676
MD5 b9ddaed88d9cf27bd626270d08e96162
BLAKE2b-256 4f6a0cbd93d5c34a7da3804c2ce6435f568cc09d40e2dd67c01c6864d4d74ab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page