Skip to content

andrewnx/autowebp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Auto-Converter to WebP

Description

This project is a Python script that automatically converts images in a specified folder to the WebP format. It watches a folder (e.g., the Downloads folder) and converts any new images to WebP, potentially reducing file size while maintaining or improving image quality.

Features

  • Automatic conversion of images to WebP format.
  • System tray integration for easy control.
  • Options to pause/resume conversion and delete original files.
  • Logging of conversion processes and memory usage.

Setup and Installation

To set up this project, follow these steps:

  1. Clone the repository:

git clone https://github.com/andrewnx/autowebp

  1. Navigate to the project directory:

cd [project directory]

  1. Install the required dependencies:

pip install -r requirements.txt

  1. Change line 66 in the code to the folder you want to watch:

DIRECTORY_TO_WATCH = "[Directory]"

  1. Save the script and run it:

python autowebp.py

How It Works

The script uses the Watchdog library to monitor a specified directory for new image files. When a new image is detected, it's automatically converted to the WebP format. The Pystray library is used for system tray integration, allowing the user to pause/resume the conversion process and toggle the deletion of original files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages