Skip to main content

A tool for optimizing images and converting to WebP format

Project description

image_converter

A Python package for optimizing images and converting them to WebP format.

Installation

pip install prag-matic-image-converter

Usage

from image_converter import ImageConverter

# Create an optimizer instance
optimizer = ImageConverter(quality=85)

# Convert a single image
optimizer.convert_to_webp('input.jpg', 'output.webp')

# Convert all images in a folder
optimizer.batch_convert('input_folder', 'output_folder')

Features

  • Convert images to WebP format
  • Batch processing support
  • Quality control for optimization
  • Handles RGBA images
  • Supports PNG, JPG, JPEG, TIFF, BMP formats

License

MIT License

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

prag_matic_image_converter-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

prag_matic_image_converter-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file prag_matic_image_converter-0.1.1.tar.gz.

File metadata

File hashes

Hashes for prag_matic_image_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3102e2cba6d450149ed7003f79730926ed6a748f78341da2cb3f74a57649733c
MD5 a4e7261e80a41bf9c2eba514f6fcd9a8
BLAKE2b-256 0bc79ecce48256778f906568ff334a795ae4ed87a9763543bb1dcd0f22f41862

See more details on using hashes here.

File details

Details for the file prag_matic_image_converter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prag_matic_image_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d14747fae5794bb6e107e44c2cd680585b046a1bfb2cbe7b76ef9df41044d44
MD5 f648dfc6c987e2fecf9c454f47d32335
BLAKE2b-256 2ba62e6e4bd31152932b330f059e81bb29739491281cae3fe9559090a63be702

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