Skip to content

Repository files navigation

Image Compressor

A simple tool that scans a folder and all its subfolders and losslessly compresses images — similar to TinyPNG, but local and free.

Supported formats

PNG, JPG/JPEG, WebP, GIF

Usage

Option A — Executable (no Python required)

  1. Download compress_images.exe
  2. Drop it into any folder containing images
  3. Double-click it

Option B — Python script

pip install -r requirements.txt
python compress_images.py              # compresses images in the current folder
python compress_images.py C:\path\to\folder   # or specify a folder

Optional: better PNG compression

Install oxipng and make sure it's on your PATH. The tool will detect it automatically and use it for significantly better PNG compression.

winget install oxipng

Notes

  • Files are only replaced if the compressed version is smaller — originals are never degraded
  • Subdirectories are scanned recursively

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages