https://github.com/cmdr-nova/anti-webp
A quick little Python script that searches your Linux downloads directory for webp images and automatically converts them to png files.
https://github.com/cmdr-nova/anti-webp
auto converter png python script webp
Last synced: 8 months ago
JSON representation
A quick little Python script that searches your Linux downloads directory for webp images and automatically converts them to png files.
- Host: GitHub
- URL: https://github.com/cmdr-nova/anti-webp
- Owner: cmdr-nova
- Created: 2024-10-24T09:51:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-24T10:06:38.000Z (over 1 year ago)
- Last Synced: 2025-06-10T01:50:06.471Z (8 months ago)
- Topics: auto, converter, png, python, script, webp
- Language: Python
- Homepage: https://nova.mkultra.monster
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Anti-Webp
Do you like to save wallpaper images from Reddit to use later? Do you save images from Google for projects, or just to post to social media? Tired of some of them being in that pesky .webp format? Well, fret no more! Just set up a cronjob for this script to check your downloads directory for .webp files, and it'll automatically convert them to .pngs!
Save the script to file, and create an environment for it:
```
python3 -m venv webp-env
```
Activate the enviro and install Pillow:
```
source webp-env/bin/activate
```
```
pip install pillow
```
Set up the cronjob:
```
*/5 * * * * /webp-env/bin/python3 /path/to/anti-webp.py
```
Now, anything you save to downloads as a .webp will be auto-converted to .png with this job that checks said folder every five minutes (you can turn off the cronjob if you don't want it running indefinitely).