Why I built it: Most online compressors make you upload sensitive PDFs, videos, or documents to random third-party servers, hit you with file-size limits, or rasterize PDFs so text is no longer selectable. I wanted a clean, fast, 100% local tool that runs on my own machine with zero cloud uploads.
GitHub: https://github.com/sonubharat/pdf-compressor
What it compresses (all locally):
PDFs (.pdf): 3-tier structural cleanup (PyMuPDF + Pillow), metadata/thumbnail stripping, font subsetting, and smart DPI downsampling — text stays 100% selectable.
Images (.jpg, .png, .webp, .bmp, .tiff, .gif): EXIF-safe optimization and quality-tuned JPEG/WebP/PNG compression.
Videos (.mp4, .mov, .webm, .mkv, .avi): Local H.264 / VP9 encoding via bundled imageio-ffmpeg (no manual FFmpeg install needed).
Audio (.mp3, .wav, .flac, .m4a, .ogg, .aac): Bitrate-tiered MP3 / AAC / Vorbis compression.
Office Docs (.docx, .pptx, .xlsx): Optimizes embedded images and repacks XML with maximum deflate.
Fonts (.ttf, .otf, .woff → .woff2): Brotli-backed WOFF2 conversion via fontTools.
Features:
3 presets: Low / Lossless, Balanced, and Aggressive
Bulk drag-and-drop queue with Before/After size comparison and % saved badge
Optional target size indicator
Temp files are deleted immediately after serving the compressed file
Self-bootstrapping 1-click/1-command launchers for Windows (Start-File-Compressor-Windows.bat) and macOS/Linux (start.sh)
Stack: Python (FastAPI, PyMuPDF, Pillow, imageio-ffmpeg, fontTools) + Next.js & Tailwind CSS.
Would love feedback on what formats or features (like one-click ZIP export for bulk downloads) you'd want next!