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
- Host: GitHub
- URL: https://github.com/hatamiarash7/python-webp
- Owner: hatamiarash7
- License: mit
- Created: 2021-11-19T09:15:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-06T12:09:13.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T03:43:36.816Z (8 months ago)
- Topics: converter, image, image-converter, python, webp
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python WEBP
[](https://www.python.org/) [](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
[](https://en.cryptobadges.io/donate/3GhT2ABRuHuXGNzP6DH5KvLZRTXCBKkx2y) [](https://en.cryptobadges.io/donate/0x4832fd8e2cfade141dc4873cc00cf77de604edde)
[](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.