Skip to content

uocou/image-Compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Local Image Compressor (Offline / Privacy-Safe)

An open-source, offline image compression tool built with pure HTML, CSS, and JavaScript.
It runs entirely in the browser without uploading files to any server, ensuring privacy and security.


✨ Features

  • πŸš€ Fast Compression: Uses WebCodecs (if supported) or Canvas for high performance.
  • πŸ“‚ Multiple Import Methods: File picker, drag & drop, paste from clipboard, or entire folders.
  • πŸ“‘ Supported Formats: JPG/JPEG, PNG, WEBP, AVIF (if supported), GIF (first frame), BMP, TIFF.
  • πŸ”’ Limit: Up to 20 images per batch.
  • πŸ–ΌοΈ Custom Parameters:
    • Output format
    • Compression quality
    • Resize (keep aspect ratio)
    • Preserve metadata (EXIF, if supported)
    • Transparency handling (remove, black/white background, or custom color)
  • πŸ”’ Offline & Private: Works without internet connection, all processing is local.
  • πŸ“Š Real-time Progress: Displays total, queued, running, success, and failed counts.
  • 🎨 Dark / Light Themes: Manual switch or follow system preference.
  • πŸ” Preview & Compare:
    • Side-by-side comparison
    • Before/After slider
    • Magnifier view for details
  • πŸ“ˆ Compression Report:
    • Summary (total size, savings, average ratio)
    • Per-image details (before/after size, ratio, time, status)
    • Visualization (bar chart, pie chart)
    • Export to CSV / JSON
  • πŸ“¦ Batch Export: Save all compressed images to a folder (via File System Access API) or download one by one.

πŸ›  Usage

  1. Download or clone this project.
  2. Open index.html directly in your browser (no server needed).
  3. Add images via drag & drop, paste, or file picker, then click Start Compression.

⚠️ Recommended: Use Chrome / Edge / Opera (Chromium-based) for best performance.
Safari/Firefox may have limited support (e.g., AVIF, metadata retention, batch export).


πŸ“œ License

MIT License – free to use, modify, and distribute with attribution.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published