- Clone this repository / Download main.py file
- Create folders 'images' and 'edited-images' inside the same directory as the main.py file.
- Add the images that need to be resized to the 'images' folder
-
Run the program using the command
python main.py
orpython3 main.py
-
The images provided will be resized to 500x500 and converted to webp format and saved in the 'edited-images' folder
Original image | ➡ | Edited image |
---|---|---|
➡ |
This was used for duckmath.org as I needed to switch from bad compression images like pngs and jpgs to webp.