https://github.com/iamdyeus/img2webp
Python script/app for bulk image conversion and optimization, perfect for web development.
https://github.com/iamdyeus/img2webp
bulk-image-converter converter image image-converter pil python tool
Last synced: 3 months ago
JSON representation
Python script/app for bulk image conversion and optimization, perfect for web development.
- Host: GitHub
- URL: https://github.com/iamdyeus/img2webp
- Owner: iamDyeus
- Created: 2024-05-04T21:32:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-04T21:45:42.000Z (about 1 year ago)
- Last Synced: 2024-05-04T22:28:51.253Z (about 1 year ago)
- Topics: bulk-image-converter, converter, image, image-converter, pil, python, tool
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# IMG 2 WEBP
IMG2WEBP is a Python-based script/application for converting and optimizing images in bulk initially made for web development optimization.## Inspiration
Saw a Lighthouse report from Cloudflare indicating that my site was loading too slowly due to the images. Conventionally, I would have had to compress each image individually and then convert them to WEBP format. However, instead of doing this manually, I came up with the idea of creating a Python script that can handle this process in bulk for me.## Results
After using this, my images folder size decreased significantly, from 105MB to just 9MB!
## Installation
locally clone/download this repo, `cd` to the project folder and then follow these steps :1. Make Virtual Environment :
`python -m venv .env`2. Acivate ENV :
`.env\scripts\activate`3. Install requirements :
`pip install -r requirements.txt`4. go to source code directory :
`cd src`5. Run `main.py` :
`python main.py`# Future
If anyone ever sees this repo and would like to flex their Python skills, they can create the GUI that I conceptualized but didn't have time to code.
[figma-file-Link](https://www.figma.com/file/kkYsDasV5SvtioPlxFLBGf/img2webp?type=design&node-id=1%3A5&mode=design&t=7k4I1UkQg1sM2FWp-1)