This Python script allows users to convert images from .jpg
to .webp
format and resize them either to recommended dimensions or to custom dimensions specified by the user. The script provides a user-friendly GUI for selecting input and output directories, specifying resolution preferences, and initiating the conversion process. Progress bars and a terminal are integrated within the GUI to provide real-time feedback on the conversion process. Additionally, the script handles errors gracefully, logging any exceptions to a file named errors.log
for further investigation.
- Python (3.6 or higher)
- Pillow (for image processing tasks)
- tkinter (to create the GUI)
- ttkthemes (to theme the tkinter GUI)
- ScrolledText (for the terminal widget within the GUI)
- Ensure you have Python 3.6 or higher installed on your machine.
- Clone the repository or download the script to your local machine.
- Install the required libraries using pip:
pip install Pillow ttkthemes
You can also install the dependencies from the requirements.txt
file provided:
pip install -r requirements.txt
- User-friendly GUI for easy operation.
- Option to select recommended or custom image dimensions.
- Real-time feedback through progress bars and a terminal.
- Error handling with logging to a file for troubleshooting.
- Icons and a polished theme for a professional look and feel.
- Launch the script.
- Select input and output directories using the provided buttons.
- Choose either recommended dimensions or specify custom dimensions for resizing.
- Click the "Convert" button to start the conversion process.
- Monitor the progress on the progress bars and in the terminal.
The script is designed to be intuitive and user-friendly, making image conversion and resizing a breeze.