/image-optimizer

This application allows you to compress multiple images simultaneously, reducing their file size while preserving image quality.

Primary LanguagePython

Image Compression

This application allows you to compress multiple images simultaneously, reducing their file size while preserving image quality.

Features

  • Select multiple images (PNG, JPEG) for compression.
  • Choose the output directory for the compressed images.
  • Adjust the compression quality.
  • Batch processing with progress tracking.
  • Remove selected images from the compression list.

Requirements

  • Python 3.x
  • PyQt5 library
  • PIL (Python Imaging Library) library

Installation

  1. Clone the repository:

git clone https://github.com/your-username/image-compression.git

  1. Install the required Python packages: pip install Pillow PyQt5

Usage

  1. Run the application:
python main2.py
  1. Click on the "Select Images" button to choose the images you want to compress.

  2. Click on the "Select Output Directory" button to select the directory where the compressed images will be saved.

  3. Adjust the compression quality if desired (default is 85).

  4. Click on the "Start Compression" button to begin the compression process.

  5. The progress bar will show the overall progress of the compression.

  6. Once the compression is complete, a message box will appear indicating the successful compression.

  7. The compressed images will be saved in the selected output directory.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.