Built a high-performance file compressor in C++ for various formats

View profile for Sudhan Kumar

Student at Guru Nanak Dev University (GNDU), Amritsar

🚀 Just shipped: A high-performance, multi-format file compression engine in C++! Tired of one-size-fits-all compression tools that don't understand your data? I've been building a professional-grade File Compressor designed to intelligently reduce file sizes by leveraging specialized algorithms tailored to each format's unique characteristics. This wasn't just about applying zip to everything. The core challenge was selecting and integrating the best-in-class libraries to achieve maximum efficiency for each file type: ✅ Text & Data (TXT, CSV, JSON, XML, LOG): Leveraged Zlib for robust lossless compression, achieving 60-85% reduction. ✅ Images (BMP, TIFF, PSD): Used stb and LibTIFF to intelligently convert BMPs to PNGs and compress TIFF/PSD files with up to 85% reduction. ✅ Audio (WAV, AIFF): Integrated LAME & AudioFile to transform uncompressed audio into efficient MP4 (AAC) files, slashing size by a massive 85-95%. 🛠️ Under the Hood: Modular C++ Architecture: Each format has its own dedicated compression module, making it easy to maintain and extend. CMake Build System: For seamless, cross-platform compilation. Professional Code Structure: Clean separation between source, headers, and external libraries. Although this is just the initial version of this project it was still fun to take a deep dive into the nuances of data formats, compression theory, and native library integration. It reinforced the principle that the right tool for the job will always outperform a generic solution. I'm excited to share the code and see how others might extend it. Think it could be useful? Check out the repo, I’d love your feedback on what other formats would you want this to support? Star ⭐ it if you like it, and I'm always open to feedback and collaboration! 🔗 Repository: https://lnkd.in/ge7k-zmv

Vikramjeet Singh Bawa

Guru Nanak Dev University, Amritsar

1mo

Impressive

Like
Reply

To view or add a comment, sign in

Explore content categories