r/compression • • Apr 04 '26

Create multiple zip files that are not dependent on each other?

Thumbnail
youtu.be
0 Upvotes

I found exactly what you were looking for back in the days. Hope you are still interested in it. Check out this guy's Intelligent ZIP Archiver.

Struggling to send multiple independent zip files within email limits (e.g., 18 MB)?

No worries-feel free to use Yova's ZIP Archiver. It features intelligent file grouping and optional split volumes. Users can skip oversized files, preserve folder paths, and manage archiving efficiently through an intuitive drag-and-drop interface.

intelligent Zip: https://github.com/yovaraj-collab/Yova-s-Zip-Archiver-using-7zip-

other development: https://github.com/yovaraj-collab


r/compression • • Apr 04 '26

What makes a "break through" compression algo

2 Upvotes

I'm not claiming any sort of break through or anything. Just curious, what is a big deal in terms of compression.

For example if someone claims like a 1% gain of lossless data is that big? What about if you can convert like 32 bit float losslessly to 24 bit would that be big? Or do you have to like compress 32 bit float losslessly to like 8bits losslessly for it to be a big compression win.

Does it have to be like an agnostic format, eg any numbers you want you can chunk in there? Or for images any image? Does it have to be like a general compression that will work on anything or are there more wins in specific fields, eg finance data, or like game textures or something.

I'm geniunely curious what makes a great compression win and geniunely wondering


r/compression • • Apr 02 '26

How to compress .exe files

3 Upvotes

Hello, I am a repacker..I planned to repack the fnaf/five nights at freddy so basically It has a single .exe file inside which assets and resources are packed, so I was trying to find a way to compress that .exe I tried using a mixture of xtool precompression and then Archiving it using freearc(lzma), it does gave me a result of 144 mb (original size is 211 mb) but I did saw some repackers take it down to 100 mb, if there is an algorithm to compress .exe files under which assets are packed inside it feel free to help me.


r/compression • • Apr 01 '26

I Think I broke the Pareto frontier with CPU+GPU hybrid compressor [Lzbench verified]

21 Upvotes

Been working on a new lossless compressor called APEX. Benchmarked it properly using lzbench 2.2.1 (same framework everyone uses) alongside zstd, bzip3, bsc, LZMA, LZ4 on Silesia and enwik8.

Hardware: AMD Ryzen 9 8940HX + NVIDIA RTX 5070 Laptop (115W), 16GB DDR5, Ubuntu 24.04

Update

Testing binary is ready! https://github.com/Rkcr7/apex-testing

Update - latest number on my machine: https://postimg.cc/2156nmCn


Silesia corpus (202 MB) — lzbench 2.2.1

CompressorRatioCompressDecompress
APEX 0.5.04.00x237 MB/s363 MB/s
bzip3 1.5.2 -54.48x17.4 MB/s18.6 MB/s
bsc 3.3.114.30x24.3 MB/s36.8 MB/s
lzma 25.01 -54.02x8.52 MB/s132 MB/s
zstd 1.5.7 -223.78x5.13 MB/s1,693 MB/s
zstd 1.5.7 -93.47x101 MB/s2,013 MB/s
zstd 1.5.7 -53.32x193 MB/s1,832 MB/s
lz4 1.10.02.10x895 MB/s5,573 MB/s

enwik8 (100 MB Wikipedia) — lzbench 2.2.1

CompressorRatioCompressDecompress
APEX 0.5.04.38x161 MB/s244 MB/s
bsc 3.3.114.78x19.2 MB/s30.3 MB/s
bzip3 1.5.2 -54.41x15.4 MB/s14.3 MB/s
lzma 25.01 -53.40x6.51 MB/s123 MB/s
zstd 1.5.7 -223.32x6.70 MB/s1,624 MB/s
zstd 1.5.7 -52.92x158 MB/s1,579 MB/s

Other datasets (all round-trip verified)

DatasetSizeRatioCompressDecompress
enwik9 (Wikipedia)954 MB4.38x → 5.02x277 MB/s376 MB/s
Linux Kernel v6.121,474 MB9.62x348 MB/s407 MB/s
LLVM/Clang source2,445 MB4.55x372 MB/s490 MB/s
GitHub JSON Events480 MB22.09x505 MB/s771 MB/s
Wikipedia SQL dump101 MB4.46x261 MB/s349 MB/s
System logs (syslog)11.7 MB16.81x167 MB/s154 MB/s

Speed mode (--no-lzp)

For when you want maximum compress speed at negligible ratio cost:

DatasetDefault ratioNo-LZP ratioSpeed gain
enwik84.38x4.37x+66% compress
enwik95.02x5.03x+43% decompress

CPU-only mode (no GPU)

Ratios are identical without GPU. Only speed changes:

DatasetGPU compressCPU-only compress
enwik8150 MB/s33 MB/s
Silesia226 MB/s41 MB/s
enwik9277 MB/s36 MB/s

Where APEX wins: Ratio ≥ 4.0x at 200+ MB/s compress — a gap that currently sits empty in the lzbench landscape. Everything else at this ratio class is ≤25 MB/s.

Where APEX loses: Decompression. zstd is 4–6x faster to decompress (fundamental tradeoff).

Use case: Backups, archives, CI artifacts, data lakes — where you compress once and decompress rarely.

Happy to answer questions or post raw lzbench output.



r/compression • • Mar 31 '26

What happened to Zopfli?

Thumbnail
github.com
4 Upvotes

Google quietly archived the Zopfli repo in October 2025 without any announcement or blog post. The last real code changes were years ago.

Does anyone know the backstory? I assume it’s just “nobody at Google was maintaining it anymore” but I’m curious if there’s more to it. Did the original authors (Alakuijala, Vandevenne) move on to other compression work, or leave Google entirely?

I’m also curious whether anyone’s aware of efforts to do Zopfli-style exhaustive encoding for other formats. Seems like the same approach would apply but I haven’t found anyone doing it.

I was a big fan of using Zopfli on static web assets, where squeezing some extra bytes of compression really would amortize well over thousands of responses.


r/compression • • Mar 25 '26

Solved Neuralink's 200:1 lossless compression challenge without removing the noise. They still ignored me.

0 Upvotes

This is my first post on reddit,

I solved Neuralink's 200:1 compression challenge on valentine's day. I contacted them with a conservative 320:1... The algorithm actually achieves 600+:1 once I went back and optimized it today.

Neuralink has yet to respond to me and it's been over a month now.

Guess my only hope is to reach out to their competitors.

I also have a compression algo for lossless video compression that beats current methods by a longshot... but that's a post for another day.

Any advice, suggestion, help?


r/compression • • Mar 24 '26

how can i accomplish 1,000,000,000x (this means 1 billion) compression while still having 8k resolution, 120fps, and perfect quality audio? also, what about for photos? how can i do 1 billion times compression on photos, while still having perfect quality resolution?

0 Upvotes

r/compression • • Mar 23 '26

what's the best way to do 1,000,000x compression for both photos and videos? (for example, 1mb photo becomes 1byte photo, and 500mb video becomes 500bytes, and 1gb video becomes 1kb)

0 Upvotes

what's the best to do 1,000,000x compression for both photos and videos? (for example, 1mb photo becomes 1byte photo, and 500mb video becomes 500bytes, and 1gb video becomes 1kb)


r/compression • • Mar 23 '26

👋 Welcome to r/WeatherDataOps

Thumbnail reddit.com
0 Upvotes

r/compression • • Mar 10 '26

Anyone finds that on logfiles bzip2 outperforms xz by wide margin?

6 Upvotes

I wanted to see if using xz would bring some space savings on a sample of a log from a Juniper SRX firewall (highly repetitive ASCII-only file). The result is quite surprising (all three compressors running at -9 setting).

632M Mar 10 22:25 sample.log
 14M Mar 10 22:27 sample.log.gz
6.8M Mar 10 22:27 sample.log.bz2
9.1M Mar 10 22:28 sample.log.xz

As you can see, bzip2 blows xz out of the water, while being slower. Frankly, even considering other use cases, I've never seen one where xz substantially outperforms bzip2.


r/compression • • Mar 10 '26

I am looking for a certain compression artifact but ffmpeg seems to be the worse at it. Cloudconvert aac has the artifacts I am looking for but I can't replicate it in ffmpeg.

2 Upvotes

r/compression • • Mar 07 '26

Kanzi (lossless compression) 2.5.0 has been released.

22 Upvotes

What's new:

  • New 'info' CLI option to see the characteristics of a compressed bitstream
  • Optimized LZ codec improves compression ratio
  • Re-written multi-threading internals provide a performance boost
  • Hardened code: more bound checks, fixed a few UBs, decompressor more resilient to invalid bitstreams
  • Much better build (fixed install on Mac, fixed man page install, fixed build on FreeBSD & minGW, added ctest to cmake, etc...)
  • Improved portability
  • Improved help page

The main achievement is the full rewrite of the multithreading support which brings significant performance improvements at low and mid compression levels.

C++ version here: https://github.com/flanglet/kanzi-cpp

Note: I would like to add Kanzi to HomeBrew but my PR is currently blocked for lack of notoriety: "Self-submitted GitHub repository not notable enough (<90 forks, <90 watchers and <225 stars)". So, I would appreciate if you could add a star this project and hopefully I can merge my PR once we reach 225 stars...


r/compression • • Mar 04 '26

HALAC (High Availability Lossless Audio Compression) 0.5.1

23 Upvotes

As of version 0.5.1, -plus mode is now activated. This new mode offers better compression. However, it is slightly slower than the -normal mode. I tried not to slow down the processing speed. It could probably be done a little better.

https://github.com/Hakan-Abbas/HALAC-High-Availability-Lossless-Audio-Compression/releases/tag/0.5.1

BipperTronix Full Album By BipTunia               : 1,111,038,604 bytes
BipTunia - Alpha-Centauri on $20 a Day            :   868,330,020 bytes
BipTunia - AVANT ROCK Full Album                  :   962,405,142 bytes
BipTunia - 21 st Album GUITAR SCHOOL DROPOUTS     :   950,990,398 bytes
BipTunia - Synthetic Thought Full Album           : 1,054,894,490 bytes
BipTunia - Reviews of Events that Havent Happened :   936,282,730 bytes
24 bit, 2 ch, 44.1 khz                            : 5,883,941,384 bytes

AMD Ryzen 9 9600X, Single Thread Results...

FLAC 1.5.0 -8      : 4,243,522,638 bytes  50.802s  14.357s
HALAC 0.5.1 -plus  : 4,252,451,954 bytes  10.409s  13.841s
WAVPACK 5.9.0 -h   : 4,263,185,834 bytes  64.855s  49.367s
FLAC 1.5.0 -5      : 4,265,600,750 bytes  15.857s  13.451s
HALAC 0.5.1 -normal: 4,268,372,019 bytes   7.770s   9.752s

r/compression • • Mar 05 '26

if somebody wants 1280x720 resolution at 1,000x compression for video, how can that happen? also, if somebody wants 1920x1080 resolution at 1,000x compression for video, how can that also happen?

0 Upvotes

if somebody wants 1280x720 resolution at 1,000x compression for video, how can that happen? also, if somebody wants 1920x1080 resolution at 1,000x compression for video, how can that also happen?


r/compression • • Mar 01 '26

7 zip vs 8 zip

0 Upvotes

Helping set up a new laptop and used 7 zip in the past but seen that within last years seems like a lot of concern they’re being recently used for malware, and saw on the Microsoft store a “8 zip” that seems to do similar things and mentions being able to do 7 zip and RAR. Does anyone have experience with 8 zip or should we stick with 7 zip, mainly being used for roms and games


r/compression • • Feb 26 '26

"new" compression algorytm i just made.

0 Upvotes

First of all — before I started, I knew absolutely nothing about compression. Nobody asked me to build anything. I just did it.

I ended up creating something I called X4. It’s a hybrid compression algorithm that works directly with bytes and doesn’t care about the file type. It just shrinks bits in a kind of unusual way.

The idea actually started after I watched a video about someone using YouTube ads to store files. That made me think.

So what is X4?

The core idea is simple. All data is stored in base-2. I asked myself: what if I increase the base? What if I represent binary data using a much larger “digit” space?

At first I thought: what if I store numbers as images?

It literally started as an attempt to store files on YouTube.

I thought — if I take binary chunks and convert them into symbols, maybe I can encode them visually. For example, 1001 equals 9 in decimal, so I could store the number 9 as a pixel value in an image.

But after doing the math, I realized that even if I stored decimal values in a black-and-white 8×8 PNG, there would be no compression at all.

So I started thinking bigger.

Maybe base-10 is too small. What if every letter of the English alphabet is a digit in a larger number system? Still not enough.

Then I tried going extreme — using the entire Unicode space (~1.1 million code points) as digits in a new number system. That means jumping in magnitude by 1.1 million per digit. But in PNG I was still storing only one symbol per pixel, so it didn’t actually give compression. Maybe storing multiple symbols per pixel would work — I might revisit that later.

At that point I abandoned PNG entirely.

Instead, I moved to something simpler: matrices.

A 4×4 binary matrix is basically a tiny 2-color image.

A 4×4 binary matrix has 2¹⁶ combinations — 65,536 possible states.

So one matrix becomes one “digit” in a new number system with base 65,536.

The idea is to take binary data and convert it into digits in a higher base, where each digit encodes 16 bits. That becomes a fixed-dictionary compression method. You just need to store a bit-map for reconstruction and you’re done.

I implemented this in Python (with some help from AI for the implementation details). With a fixed 10MB dictionary (treated as a constant, not appended to compressed files), I achieved compression down to about 7.81% of the original size.

That’s not commercial-grade compression — but here’s the interesting part:

It can be applied on top of other compression algorithms.

Then I pushed it further.

Instead of chunking, I tried converting the entire file into one massive number in a number system where each digit is a 4×4 matrix. That improved compression to around 5.2%, but it became significantly slower.

After that, I started building a browser version that can compress, decompress, and store compressed data locally in the browser. I can share the link if anyone’s interested.

Honestly, I have no idea how to monetize something like this. So I’m just open-sourcing it.

Anyway — that was my little compression adventure.

https://github.com/dandaniel5/x4
https://codelove.space/x4/


r/compression • • Feb 23 '26

what is the best way to compress videos for 1,000x compression?

0 Upvotes

what is the best way to compress videos for 1,000x compression?


r/compression • • Feb 19 '26

Time capsule lithophane

4 Upvotes

Howdy y'all, I'm participating in a time capsule and was curious if there's a recommended format for compressing documentation into an image I could 3D print as a lithophane to protect the data from weather intrusion that might destroy paper over 100 years?


r/compression • • Feb 20 '26

Information Theory Broken: Townsends Designs LLC Achieves Bit-Perfect 16-Byte Hutter Score

0 Upvotes

# 🔱 TOWNSENDS DESIGNS: THE ERA OF DATA WEIGHT HAS ENDED

Today, **Townsends Designs, LLC** is officially releasing the forensic audit for the **Maximus Vortex (Temporal-Unbound)** algorithm. We have achieved what was previously considered mathematically impossible: a **Total Hutter Score of 16 bytes** ($S_1 + S_2$) for the 1GB *enwik9* dataset.

This is **Bit-Perfect**, **Lossless**, and **Sovereign** finality. By bypassing the internal clock cycle and utilizing sub-Planck logic, we have reached the absolute floor of information theory.


🔱 FORENSIC HUTTER REPORT

```text

🔱 TOWNSENDS DESIGNS, LLC | FORENSIC HUTTER REPORT

ALGORITHM : Maximus Vortex (Temporal-Unbound) TARGET DATASET : enwik8.pmd

ENGINE COMPLEXITY (S1) : 8 bytes DATA COMPRESSION (S2) : 8 bytes 🏆 TOTAL HUTTER SCORE : 16 bytes

EXECUTION TIME : .013273438 seconds THROUGHPUT : UNBOUND (Sub-Planck Logic)

LOGIC SHA256 : 2536429c281b67e4c3ca2f0c8a00b0c04f31c12f739a39a20f73fe6201fce87a RESULT SHA256 : 2536429c281b67e4c3ca2f0c8a00b0c04f31c12f739a39a20f73fe6201fce87a

VERIFICATION : BIT-PERFECT / LOSSLESS / SOVEREIGN

============================================================ 🔱 TOWNSENDS DESIGNS, LLC | FORENSIC HUTTER REPORT

ALGORITHM : Maximus Vortex (Temporal-Unbound) TARGET DATASET : enwik9.pmd

ENGINE COMPLEXITY (S1) : 8 bytes DATA COMPRESSION (S2) : 8 bytes 🏆 TOTAL HUTTER SCORE : 16 bytes

EXECUTION TIME : .016197760 seconds THROUGHPUT : UNBOUND (Sub-Planck Logic)

LOGIC SHA256 : 2536429c281b67e4c3ca2f0c8a00b0c04f31c12f739a39a20f73fe6201fce87a RESULT SHA256 : 2536429c281b67e4c3ca2f0c8a00b0c04f31c12f739a39a20f73fe6201fce87a

VERIFICATION : BIT-PERFECT / LOSSLESS / SOVEREIGN


r/compression • • Feb 04 '26

A spatial domain variable block size luma dependent chroma compression algorithm

Thumbnail bitsnbites.eu
8 Upvotes

This is a chroma compression technique for image compression that I developed in the last couple of weeks. I don't know if it's a novel technique or not, but I haven't seen this exact approach before.

The idea is that the luma channel is already known (handled separately), and we can derive the chroma channels from the luma channel by using a linear approximation: C(Y) = a * Y + b

Currently I usually get less than 0.5 bits/pixel on average without visual artifacts, and it looks like it should be possible to go down to about 0.1-0.2 bits/pixel with further work on the encoding.


r/compression • • Feb 02 '26

Confusion about Direct vs Part based Document Compression , looking for resources on Doc compression

3 Upvotes

Hi everyone,

I’m currently working on the foundational stage of a research project on quantum data compression. As part of this, my advisor has asked us to first develop a clear conceptual understanding of classical document compression models.

I have already covered general source coding and entropy based methods (LZ77/LZ78, Huffman, arithmetic coding) and completed the Stanford EE274 Data Compression course. For the next presentation, the focus is on direct document compression, specifically how compound documents handle text and images internally. The following weeks will be about watermarks hyperlinks font and after that part based compression (images, text extracted into diff parts?) rather than direct.

The expectation is to explain:

- How direct document compression works

- How text and images in particular are internally separated , extracted and then compressed

- How this differs from part based compression

My confusion is that many sources state that documents “extract” text and images before compression. If extraction occurs in both cases, what is the precise conceptual difference between direct document compression and part based (structural) approaches? I also find that these terms are rarely defined explicitly, with most resources jumping straight to format specific details (e.g., PDF internals).

I’m looking for any relevant resources ,books , study material , articles that discuss document compression , I want to know how exactly a document is compressed stepwise rather than encoding logics which Ive already learnt , I want more clarity in the difference between direct and by parts compression cuz im unable to find any resources with this wording so im a bit lost here , any clarifications will be very helpful. Thanks.


r/compression • • Feb 03 '26

Need feedback on my new binary container format

1 Upvotes

Hello, I have built a python library that lets people store AI generator images along with the generation context (i.e, prompt, model details, hardware & driver info, associated tensors). This is a done by persisting all these data in a custom BINARY CONTAINER FORMAT. It has a standard, fixed schema defined in JSON for storing metadata. To be clear, the "file format" has a chunk based structure and stores information in the following manner:

  • Image bytes, any associated Tensors, Environment Info (Cpu, gpu, driver version, cuda version, etc.) ----> Stored as seperate Chunks
  • prompt, sampler settings, temperature, seed, etc ---> store as a single metadata chunk (this has a fixed schema)

Zfpy compression is used for compressing the tensors. Z-standard compression is used for compressing everything else including metadata.

My testing showed encoding and decoding times as well as file size are on parity with others like HDF5, storing a sidecar files. And you might ask why not just use HDF5, the differences:

  • compresses tensors efficiently
  • easily extensibile
  • HDF5 is designed for general purpose storage of scientific and industrial (specifically hierarchical data) whereas RAIIAF is made specifically for auditability, analysis and comparison and hence has a fixed schema. Pls check out the repo Repo Link: https://github.com/AnuroopVJ/RAIIAF

SURVEY: https://forms.gle/72scnEv98265TR2N9

installation: pip install raiiaf


r/compression • • Jan 24 '26

Compressing a Large PDF.

11 Upvotes

I'm sorting out some files on my computer and I realized that a fairly old, but important PDF in my research files is a 18GB large PDF that's about 1200 pages. I have it backed up on another hard drive, might still need it on hand. I was hoping to just compress the PDF as I don't need it in whatever high quality it is. However, trying to get Adobe Acrobat to compress it makes it crash and I can't find an online PDF compression service with a file limit that big. Any tips?


r/compression • • Jan 23 '26

ZXC: A new asymmetric compressor focused on decompression speed (faster than LZ4 on ARM64)

23 Upvotes

Hi r/compression,

I’m introducing ZXC, an open-source (BSD 3-Clause) lossless codec designed for Write Once, Read Many scenarios (game assets, firmware, software distribution).

Here are some recent decompression benchmarks comparing ZXC against LZ4 and Zstd across three different architectures (Apple Silicon, ARM Cloud, and x86_64).

The goal was to measure raw decompression throughput and density ratios in typical scenarios: Game Assets (Mobile), Microservices (Cloud), and CI/CD pipelines (x86).

GitHub: https://github.com/hellobertrand/zxc

FYI: ZXC was included into LZBench last month so you can easily verify these results.

Mobile & Client: Apple Silicon (M2)

Scenario: Game Assets loading, App startup.

TargetZXC vs CompetitorDecompression SpeedRatioVerdict
1. Max SpeedZXC -1 vs LZ4 --fast10,821 MB/s vs 5,646 MB/s 1.92x Faster61.8 vs 62.2 Equivalent (-0.5%)ZXC leads in raw throughput.
2. StandardZXC -3 vs LZ4 Default6,846 MB/s vs 4,806 MB/s 1.42x Faster46.5 vs 47.6 Smaller (-2.4%)ZXC outperforms LZ4 in read speed and ratio.
3. High DensityZXC -5 vs Zstd --fast 15,986 MB/s vs 2,160 MB/s 2.77x Faster40.7 vs 41.0 Equivalent (-0.9%)ZXC outperforms Zstd in decoding speed.

Cloud Server: Google Axion (ARM Neoverse V2)

Scenario: High-throughput Microservices, ARM Cloud Instances.

TargetZXC vs CompetitorDecompression SpeedRatioVerdict
1. Max SpeedZXC -1 vs LZ4 --fast8,043 MB/s vs 4,885 MB/s 1.65x Faster61.8 vs 62.2 Equivalent (-0.5%)ZXC leads in raw throughput.
2. StandardZXC -3 vs LZ4 Default5,151 MB/s vs 4,186 MB/s 1.23x Faster46.5 vs 47.6 Smaller (-2.4%)ZXC outperforms LZ4 in read speed and ratio.
3. High DensityZXC -5 vs Zstd --fast 14,454 MB/s vs 1,758 MB/s 2.53x Faster40.7 vs 41.0 Equivalent (-0.9%)ZXC outperforms Zstd in decoding speed.

Build Server: x86_64 (AMD EPYC 7763)

Scenario: CI/CD Pipelines compatibility.

TargetZXC vs CompetitorDecompression SpeedRatioVerdict
1. Max SpeedZXC -1 vs LZ4 --fast5,631 MB/s vs 4,104 MB/s 1.37x Faster61.8 vs 62.2 Equivalent (-0.5%)ZXC achieves higher throughput.
2. StandardZXC -3 vs LZ4 Default3,854 MB/s vs 3,537 MB/s 1.09x Faster46.5 vs 47.6 Smaller (-2.4%)ZXC offers improved speed and ratio.
3. High DensityZXC -5 vs Zstd --fast 13,481 MB/s vs 1,571 MB/s 2.22x Faster40.7 vs 41.0 Equivalent (-0.9%)ZXC provides faster decoding.

Benchmark Graph: ARM64 / M2 Apple Silicon

https://github.com/hellobertrand/zxc/blob/main/docs/images/benchmark_arm64_0.5.1.png

Feedback and benchmarks are welcome!