An open API service indexing awesome lists of open source software.

https://github.com/hatamiarash7/python-webp

Convert images to WebP format in python
https://github.com/hatamiarash7/python-webp

converter image image-converter python webp

Last synced: 6 months ago
JSON representation

Convert images to WebP format in python

Awesome Lists containing this project

README

          

# Python WEBP

[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Check](https://github.com/hatamiarash7/Python-WebP/actions/workflows/check.yml/badge.svg)](https://github.com/hatamiarash7/Python-WebP/actions/workflows/check.yml)

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](https://developers.google.com/speed/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](https://pillow.readthedocs.io/en/stable/) with pip:

```sh
pip install Pillow
```

Place your images in `images` directory and:

```sh
python convert.py
```

### Windows

Windows users can easily execute `run.bat` to convert images

---

## Support

[![Donate with Bitcoin](https://en.cryptobadges.io/badge/micro/3GhT2ABRuHuXGNzP6DH5KvLZRTXCBKkx2y)](https://en.cryptobadges.io/donate/3GhT2ABRuHuXGNzP6DH5KvLZRTXCBKkx2y) [![Donate with Ethereum](https://en.cryptobadges.io/badge/micro/0x4832fd8e2cfade141dc4873cc00cf77de604edde)](https://en.cryptobadges.io/donate/0x4832fd8e2cfade141dc4873cc00cf77de604edde)

[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/D1D1WGU9)

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