KH ImageOptimizer is a user-friendly and efficient image resizing and optimization tool designed to simplify the process of reducing image file sizes while maintaining quality. This project features a graphical user interface (GUI) built with Tkinter, making it accessible for users of all skill levels.
- Auto Optimization: Automatically resize images to optimal web resolution.
- Manual Resize Options: Specify custom width and height for resizing.
- Replace Original Images: Option to overwrite the original images with the resized ones.
- Rename Output Files: Add a suffix to resized images for easy identification.
- Delete Input Files: Option to delete original images after resizing.
- Support for Various Image Formats: Works with PNG, JPG, JPEG, BMP, GIF, and more.
- Progress Tracking: Real-time progress bar and status updates during the resizing process.
- Python 3.x
- Pillow library for image processing
-
Clone the repository:
git clone https://github.com/yourusername/KH-ImageOptimizer.git cd KH-ImageOptimizer -
Create a virtual environment and activate it (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install pillow
-
Run the script:
python image-optimizer.py
-
Use the GUI to select the input folder, configure your resizing options, and start the resizing process.