ImgCompress is a high-performance, self-hosted Docker image compression and conversion tool featuring fully local AI-powered background removal. Process unlimited images offline with zero cloud uploads, no subscriptions, and complete data sovereignty.
I created ImgCompress as a private alternative to cloud-based converters. Most web tools force a choice between convenience and privacy. ImgCompress is a complete local-first image web tool that handles everything from batch resizing to professional AI background removal on your own hardware.
Unlike traditional SaaS services, ImgCompress is built around a strict “Privacy by Default” philosophy. All image processing happens entirely on your own hardware, making it suitable for handling sensitive or regulated data without relying on external services.
- 100% Local Processing: All operations run exclusively on your CPU/GPU.
- No External API Calls: Images are never uploaded, proxied, or shared with third-party servers.
- Air-Gapped Ready: Fully functional in offline and restricted network environments.
- imgcompress: Privacy-First Image Optimizer: Compress, Convert and remove backgrounds using local AI (Docker)
Get up and running in seconds with Docker. Imgcompress Docker Image.
docker run --name imgcompress -p 3001:5000 karimz1/imgcompress:latestservices:
imgcompress:
image: karimz1/imgcompress:latest
container_name: imgcompress
restart: always
ports:
- "3001:5000"Open your browser and visit http://localhost:3001.
For advanced use cases, detailed configuration, and deployment options, please visit:
Full Installation Guide & Documentation
- HEIC/HEIF to JPG Converter: Instantly convert iPhone photos into high-quality JPEG or PNG.
- Local AI Background Removal: Powered by U²-Net in combination with the Python package rembg for 100% offline background removal.
- PDF to Image Tool: Extract PDF pages as individual high-resolution images (PNG/JPG/AVIF).
- Universal Format Support: Convert between 70+ formats including WebP, PSD, EPS, and TIFF.
- Professional Compression Controls: Fine-tune quality settings, dimensions, and lossless optimization.
- Automation Friendly: Scriptable CLI with JSON output for DevOps and CI/CD pipelines.
- Cross-Platform: Runs everywhere (Linux, Mac, Windows, Raspberry Pi) via Docker.
| Original Image | Background Removed (Local AI) |
|---|---|
![]() |
![]() |
ℹ️ 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 image re-serialization.
📸 Source of Original Image Landscape with sunset in Yixing (Freepik), used for demonstration purposes.
For a detailed guide on using the Web Interface in imgcompress, please visit the How to Use the Web UI.
- Web Developers: Optimize website assets to improve Google PageSpeed scores.
- Photographers: Batch compress high-res galleries by up to 80% without visible quality loss using AVIF Format.
- Privacy-Conscious Users: Securely process family photos and sensitive documents without uploading them to cloud servers.
- Enterprises: Maintain GDPR, HIPAA, or SOC2 compliance by processing all media in-house, ensuring no data share.
Yes, it is 100% free and open-source. There are no subscriptions, no paid tiers, and no limits on the number of images you can process. It works on your own hardware so convert as many images as you like.
No. Once you've pulled the Docker image, imgcompress works entirely offline. No data is ever sent to the cloud, making it perfect for privacy-sensitive work.
ImgCompress is an easy-to-use all-in-one toolkit. Unlike online tools that limit you to basic formats, ImgCompress supports nearly all image formats: including HEIC, HEIF, PSD (Photoshop), EPS (Vector), AVIF, and many more. It brings professional-grade format support and bulk optimization directly to your local hardware all for average users in a simple and nice Web Interface.
I love thanking my supporters! Whether you use GitHub or PayPal, your contribution is recognized here.
✨ Special Thanks A very special thank you for the incredible support and encouragement for this project!
| Date | Supporter | Project Impact |
|---|---|---|
| Jan 2026 | Anonymous | One-time Donation (PayPal) |
| Oct 2025 | @Fayyaadh | One-time Donation (PayPal) |
Note for PayPal Supporters: To be added to the table above, please include a note in the PayPal payment field with your GitHub profile link or website.
Prefer to stay under the radar? You are always welcome to support anonymously.
Thank you for being part of the journey!
- Release Notes: Read Release Notes
- The current release and past releases can be found here: https://github.com/karimz1/imgcompress/releases
- License: GPL-3.0 License





