A high-performance Python tool for recursive image optimization.
- Multithreaded: Uses
ThreadPoolExecutorfor batch processing. - LANCZOS Scaling: High-quality resampling via
Pillow. - Modular Logging: Professional log tracking.
- Progress Tracking: Real-time visual feedback with
tqdm.
Clone the repository and install dependencies:
git clone [https://github.com/reory/bulk_image_resizer.git](https://github.com/reory/bulk_image_resizer.git)
cd bulk_image_resizer
bash
pip install -r requirements.txtOpen resizer.py and update your source and destination folders:
src = r"C:\Users\Admin\Desktop\Photos"
dest = r"C:\Users\Admin\Desktop\Optimized_Photos"
python resizer.py-
CLI Support: Use argparse to pass paths and dimensions via terminal.
-
Format Expansion: Add .webp and .png support with auto-conversion.
-
Efficiency Report: Calculate and log total "MB Saved" at session end.
-
De-duplication: Use MD5 hashing to skip identical files and save time.
Any issues with the code please feel free to reach out to me. Cheers 😁
See LICENSE.md for usage rights and CONTRIBUTING.md for how to help.