Skip to content

siiiidddexe/Image-Compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ Image Compressor

A simple Python application that compresses images using the Pillow (PIL) library.


✨ Features

  • Compresses images by reducing quality and resizing 📉
  • Supports multiple image formats (JPEG, PNG, BMP, TIFF, WebP)
  • Batch processes all images in the input folder 📂
  • Customizable compression settings ⚙️
  • Shows compression statistics 📊
  • Preserves image quality while reducing file size

🛠️ Installation

  1. Install the required dependencies:
    pip install -r requirements.txt

🚀 Usage

  1. Place your images in the input folder.
  2. Run the application:
    python app.py
  3. Follow the prompts to customize compression settings (optional).
  4. Compressed images will be saved in the output folder with the same file names.

⚙️ Default Settings

  • Quality: 85% (JPEG compression quality)
  • Resize Factor: 0.8 (images resized to 80% of original dimensions)

📁 Supported Formats

  • JPEG (.jpg, .jpeg)
  • PNG (.png)
  • BMP (.bmp)
  • TIFF (.tiff, .tif)
  • WebP (.webp)

✅ Output

  • All compressed images are saved in the output folder.
  • Output files have the same name as the input files, allowing for easy replacement.
  • The application displays compression statistics for each image.

Example

Original: photo.png (2.5 MB, 1920x1080)
Compressed: photo_compressed.jpg (450 KB, 1536x864)
Size reduction: 82%

About

Bulk Image Compressor

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages