Reduces image size,while maintaining the aspect ratio with the best image quality possible.
Use case: Helpful for uploading images to a web server to aid clients with limited internet connection
- An Easy-to-use GUI
- Batch mode: where you can select a folder containing the images to convert.
- Converting images with one click.
- Fast compressing algorithm.
- Select the desired image quality, ranging from (1-->99) higher number produces better image quality.
- Select the folder that contains the images to be converted.
- Click "Start Converting"
- You'll find the converted images in a sub-folder called: "Output"
- Iterate over the input folder's files to find any compatible images.
- Read the images via
cv2.imread()
function. - Manipulate the resolution of each image with respect to the chosen resolution set by user.
- Save the modified images with a .jpg exetension inside a folder called output which is nested inside the input folder for consistency.
Packaged version of this project is available to download here
Clone this repository to your machine
cd compress.me-master
pip install -r requirements.txt
python3 main.py
This project is released under the GNUv3