This is a simple Python script that converts .png
, .jpg
, and .jpeg
images to .webp
format using the Pillow library.
- Converts images from PNG, JPG, and JPEG formats to WebP.
- Maintains image quality with an adjustable compression setting.
- Handles images with transparency by converting them to RGB.
Ensure you have Python installed, then install the required dependency:
pip install pillow