Skip to main content

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

Metadata

Release files for prag-matic-image-converter 0.1.1

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

Source distribution (sdist)

Source distribution for prag-matic-image-converter 0.1.1
File Size Uploaded
prag_matic_image_converter-0.1.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prag-matic-image-converter 0.1.1
File Interpreter ABI Platform
prag_matic_image_converter-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / prag_matic_image_converter-0.1.1.tar.gz

Download URL prag_matic_image_converter-0.1.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3102e2cba6d450149ed7003f79730926ed6a748f78341da2cb3f74a57649733c
BLAKE2b-256 checksum
How to use checksums
0bc79ecce48256778f906568ff334a795ae4ed87a9763543bb1dcd0f22f41862
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release files / prag_matic_image_converter-0.1.1-py3-none-any.whl

Download URL prag_matic_image_converter-0.1.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d14747fae5794bb6e107e44c2cd680585b046a1bfb2cbe7b76ef9df41044d44
BLAKE2b-256 checksum
How to use checksums
2ba62e6e4bd31152932b330f059e81bb29739491281cae3fe9559090a63be702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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