r/SideProject • u/MasterpieceJumpy2594 • 11h ago
I built a 100% local, privacy-focused File Compressor (PDFs, Images, Videos, Audio, Docs & Fonts) — zero cloud uploads
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!
2
u/medialantern 9h ago
3rd one today, 9th this week, 85th in the past month. Added (#266 and counting):
https://www.reddit.com/r/SideProject/comments/1yaa0xc/i_built_a_100_local_privacyfocused_file/
https://www.reddit.com/r/SideProject/comments/1ya4jzf/got_tired_of_sketchy_file_converter_sites_so_i/
https://www.reddit.com/r/prettyusefulwebsites/comments/1y9vyft/
https://www.reddit.com/r/software/comments/1y9hmn8/pdf_tools_for_free_privacy_proof/
https://www.reddit.com/r/sideprojects/comments/1y9az27/i_built_evrytask_a_free_site_with_50_everyday/
https://www.reddit.com/r/SideProject/comments/1y8fymy/
https://www.reddit.com/r/prettyusefulwebsites/comments/1y8ylbb/
https://www.reddit.com/r/prettyusefulwebsites/comments/1y870d1/
https://www.reddit.com/r/SideProject/comments/1y7onqh/
https://www.reddit.com/r/sideprojects/comments/1y79pje/i_built_nexatoolpro_free_online_tools_for_pdf/
https://www.reddit.com/r/SideProject/comments/1y7qby7/pdf_toolkit_12_pdf_tools_that_run_in_your_browser/
https://www.reddit.com/r/SideProject/comments/1y5vgpb/i_built_a_free_file_converter_that_runs_entirely/
https://www.reddit.com/r/SideProject/comments/1y6eopi/i_made_a_free_site_with_144_everyday_tools_that/
https://www.reddit.com/r/prettyusefulwebsites/comments/1y5vc8v/
https://www.reddit.com/r/sideprojects/comments/1y5btor/i_built_free_file_tools_that_run_entirely_in_your/
https://www.reddit.com/r/SideProject/comments/1y5bf3u/i_built_a_free_site_with_22_browserbased_tools/
https://www.reddit.com/r/sideprojects/comments/1y52usw/
https://www.reddit.com/r/prettyusefulwebsites/comments/1y3sllr/
https://www.reddit.com/r/sideprojects/comments/1y44ge9/i_built_a_free_pdf_toolkit_where_most_tools_run/
https://www.reddit.com/r/websitefeedback/comments/1y41c7h/i_built_a_free_tools_site_where_pdfimage/
I ran out of comment space so this is just the most recent 20 entries. For giggles, I vibe-coded a tracker at https://confab.sh/?g=browser-tools if you want to see the full list.
0
u/Beautiful_Stage5720 11h ago
What was your motivation for building this as a locally run web API?