MFC1 (TrucCompression)
Block formula list: CONST, REPEAT, COPY, ZLIB, DELTA+ZLIB, XOR+ZLIB, RAW. Browser encoder skips BZ2/LZMA (CLI has them).
mergeos-bounties · open source · offline-friendly
Compress any file with the browser MFC1 codec, restore byte-for-byte, and compare against built-in media compressors (Gzip, Deflate/zlib). Sample fixtures are ready to try — no install.
Ready — pick a sample or drop a file.
Use a sample fixture, or upload / drop your own binary, image, or WAV.
Drop a file here or click to browse
Binary · PNG/JPEG/WebP · WAV · any bytes (client-side only)
MFC1 (this product) vs browser CompressionStream Gzip & Deflate.
All paths are lossless here. Lossy codecs (JPEG quality, MP3, H.264) are not 1:1 comparable.
| Method | Size | Ratio | Saved | Time | Verify | Notes |
|---|---|---|---|---|---|---|
| Load a file to see results… | ||||||
{}
Block formula list: CONST, REPEAT, COPY, ZLIB, DELTA+ZLIB, XOR+ZLIB, RAW. Browser encoder skips BZ2/LZMA (CLI has them).
Whole-stream DEFLATE + gzip framing via CompressionStream("gzip") — common for downloads and HTTP.
Raw zlib wrapper via CompressionStream("deflate") — same family as Python zlib.
PNG/JPEG/WebP are already entropy-coded. MFC rarely beats the file size — try “image raw RGB” for a fair pixel-level compare.
| File | Size | Expected behaviour |
|---|---|---|
samples/zeros.bin | 4 KiB | CONST / huge savings |
samples/const.bin | 2 KiB | CONST |
samples/repeat.bin | 2 KiB | REPEAT (ABAB…) |
samples/text.bin | ~3 KiB | ZLIB / REPEAT |
samples/ramp.bin | 2 KiB | DELTA_ZLIB often best |
samples/noise_4k.bin | 4 KiB | Little or no savings (RAW) |
samples/tone_440.wav | ~9 KiB | Structured PCM; MFC vs Gzip |
samples/gradient_32.png | ~2 KiB | Already compressed container |
git clone https://github.com/mergeos-bounties/TrucCompression.git
cd TrucCompression
python -m venv .venv
# Windows: .venv\Scripts\activate
pip install -e ".[dev]"
truccompression demo
truccompression compress data/samples/zeros.bin out.mfc --verify
truccompression decompress out.mfc restored.bin
Star core MergeOS repos, claim a bounty issue, open a PR against
master, pass CI → maintainer merge + MRG credit.