Python-WebP

Convert images to WebP format in python

MIT License

Stars
2

Python WEBP

The file formats you use on your website have a major impact on its speed, quality, and performance. However, figuring out which image types to use can require a bit of research.

For example, WebP is a relatively new, next-gen image file format created by Google. Understanding what it is and how to use it on your WordPress site can help you enhance your User Experience (UX) and overall reduce loading times.

There is many websites that convert your photos to WebP format. But it's the offline way 😉

Workflow

This script will do these:

  • Add a watermark to your images ( using logo.png file )
  • Convert final image to WebP format

Usage

Install Pillow with pip:

pip install Pillow

Place your images in images directory and:

python convert.py

Windows

Windows users can easily execute run.bat to convert images


Support

Contributing

Don't be shy to be a contributor 😉

  1. Fork it !
  2. Create your feature branch : git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request

Issues

Each project may have many problems. Contributing to the better development of this project by reporting them.