A portable and efficient file compression tool supporting Text, PDF, and Video files, with ready-to-run builds for both Windows and Linux.
- 📄 Text Compression – Optimized compression for
.txtfiles - 📕 PDF Compression – DPI-based adjustable compression
- 🎥 Video Compression – Supports
.mp4and.webmwith bitrate control - ⚡ Portable Execution – No installation required
- 🧠 Smart file-type detection (not just extensions)
- 🖥️ Cross-platform builds – Windows & Linux
project-root/
│
├── builds/
│ ├── windows_x64/ # Download this to run on Windows
│ └── linux_x64/ # Download this to run on Linux
│
├── source/
│ ├── windows/ # Windows-specific source code
│ └── linux/ # Linux-specific source code
│
└── README.md
- Download
builds/windows_x64 - Open terminal inside that folder
- Run:
.\compressor <filepath> <level> <custom_value>
- Download
builds/linux_x64 - Open terminal inside that folder
- Give permission (first time only):
chmod +x compressor
- Run:
./compressor <filepath> <level> <custom_value>
.\compressor input.pdf 2 150
Path to the input file
Supported formats:
.txt.pdf.mp4,.webm
| Level | Meaning | Notes |
|---|---|---|
| 1 | Low Compression | Best quality, least compression |
| 2 | Medium Compression | Balanced |
| 3 | High Compression | Smaller size, lower quality |
| 4 | Custom Compression | Requires custom_value |
Use level 4 for full control.
| Value | Quality |
|---|---|
| 300 | High |
| 150 | Medium |
| 72 | Low |
Lower DPI → higher compression
| Value | Quality |
|---|---|
| 2000+ | High quality |
| 1000 | Medium |
| 500 | Low |
Lower bitrate → smaller file
- No custom value required
- Compression handled automatically
- Detects file type using internal logic
- Routes processing:
- PDF → Ghostscript
- Video → FFmpeg
- Text → Zstd compression
- Outputs compressed file in an
outputdirectory
- Keep all binaries inside the build folder
- Works fully offline
- No installation required
- Just download the correct build and run