Skip to content

imgcompress is a fast, privacy-first image processing tool that runs entirely in Docker. Compress, convert, resize, batch-process images and remove backgrounds using local AI with zero cloud dependencies.

License

Notifications You must be signed in to change notification settings

karimz1/imgcompress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgcompress - Privacy-First Image Optimizer: Compress, Convert & AI Background Removal (Docker)

Documentation Docker Pulls Docker Image Size Docker Image Version (latest semver) Release Date License GitHub Sponsor

imgcompress logo

A self-hosted Docker image compression and conversion tool with local AI background removal. Process unlimited images offline: no cloud uploads, no subscriptions, no per-image limits.

Perfect for: photographers managing large galleries, developers optimizing web assets, privacy-conscious users, and anyone needing a free TinyPNG/Squoosh alternative that runs entirely on your hardware.

  • 🔒 Privacy-First & 100% Local: All processing happens on your device.
  • 💰 Unlimited & Free: No subscriptions or API limits.
  • 🖼️ Universal Support: 70+ formats including HEIC, HEIF, WebP, PSD, and PDF.
  • 🤖 Local AI: Background removal all locally.
  • 📦 Cross-Platform: Deploy anywhere with Docker.

🧠 Local AI Background Removal Result:

Original Image Background Removed (Local AI)
Original image Background removed image

ℹ️ Info

Processed fully locally using rembg and
U2-Net local AI model.
No data ever leaves your network.

Internally it also uses onnxruntime.
Imgcompress also uses Pillow for re-serialization of images.

📸 Source of Original Image

Landscape with sunset in Yixing (Freepik), used for demonstration purposes.


🖥️ Web UI Preview

For a detailed guide on using the Web Interface in imgcompress, please visit the How to Use the Web UI.

Step Screenshot Description
1 Upload & Configure
Drag & drop images or PDFs, choose format, configure options.
2 Processing
Images are processed locally with live progress feedback.
3 Download Results
Download files individually or as a ZIP archive.

🏁 Getting Started

To get up and running with imgcompress in seconds, please follow: Installation Guide

✨ Key Features & Capabilities

  • 📱 HEIC/HEIF Converter: Instantly turn iPhone photos into high-quality JPG/PNG.
  • 🤖 AI Background Removal: Powered by rembg and U2-Net local AI model. 100% offline and private.
  • 📰 PDF to Image: Extract every page of a PDF as individual high-res images.
  • 🖼️ Universal Conversion: Support for 70+ formats (HEIC, HEIF, PSD, EPS, TIFF, etc.).
  • ⚙️ Pro Controls: Fine-tune quality, width dimensions, and lossless settings.
  • 🚀 Parallel Processing: Multi-core optimization for lightning-fast batch jobs.
  • 🛠️ Automation: Scriptable CLI with JSON output for CI/CD integration.
  • 📦 Cross-Platform: Runs everywhere (Linux, Mac, Windows, Raspberry Pi).

💼 Use Cases

  • Photographers: Batch compress galleries by 70%+ without quality loss.
  • Developers: Optimize web assets for better PageSpeed.
  • Privacy Users: Process sensitive documents and family photos offline.
  • Enterprises: GDPR/HIPAA compliant processing on your hardware, no data share.

📓 Release Notes & License

About

imgcompress is a fast, privacy-first image processing tool that runs entirely in Docker. Compress, convert, resize, batch-process images and remove backgrounds using local AI with zero cloud dependencies.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors 3

  •  
  •  
  •