Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What settings to use when making 7zip files in order to get maximum compression? I'm compressing PDF documents containing scanned images. I'm thinking about using LZMA2, but I don't know what to set in dictionary size, word size, etc. Also, would LZMA or PPMd be better options?

I need to have some files transfered (~200MiB) over net and upload speeds here are very slow, so I'd want to compress the data as much as possible. CPU time consumed is not very important.


Here's what I got after testing various compression methods:

Uncompressed size was: 25,462,686B

My processor is Intel Core 2 Due T8100 and I have 4GiB of ram.

Best compression was with PeaZip using PAQ8O algorithm. Resulting file size was 19,994,325B. Settings used were compression level: maximum. Unfortunately, speed of compression was around 5KiB/s, so it took more that one hour to compress data.

Next was experimental PAQ9O compressor. Using it, I got 20,132,660B in about 3 minutes of compression. Unfortunately, program is command line only, and not many other programs use that compression algorithm. It also uses around 1.5GiB of RAM with settings I used (a -9 -c)

After that was 7-Zip 9.15 beta (2010-06-20) using LZMA2. Using it, I got 20,518,802B in about 3 minutes. Settings used were word size 273, dictionary size 64MB and I used 2 threads for compression.

Now back to my original question: In my case solid block size didn't produce any noticeable results. Increasing word size did produce some results. Difference between highest word size and smallest was 115,260B. I believe that such savings do justify efforts needed to make two necessary clicks and change word size.

I tried using other compression algorithms supported by 7zip and PeaZip and they produces files in sizes from 19.8MiB to 21.5MiB.

In the end my conclusion is that when compressing PDF documents containing mostly images, the effort needed to use exotic compression algorithms isn't justified. Compression using LZMA2 in 7zip produced quite acceptable results in least amount of time.

share|improve this question
What's different about using PeaZip? It's just a GUI wrapper around 7zip and many other tools –  Cole Johnson Aug 21 '13 at 22:42
@Cole "Cole9" Johnson Well the difference is that in my case I used some "other" tools from PeaZip that did not have a GUI at the time. If I remember correctly back then only PeaZip offered PAQ8O algorithm with a GUI. –  AndrejaKo Aug 22 '13 at 7:32

3 Answers 3

up vote 7 down vote accepted

The content of the PDFs (text & images) is probably already compressed -- so there's not going to be much to gain by trying to compress them again.

share|improve this answer
Well, no. I did a little bit of testing and took 24MiB of PDFs and compressed them using default settings. Result was a 19 MiB file. In my case, those 5 MiB do matter in my case. –  AndrejaKo Aug 20 '10 at 9:02
Looks like you're right. I couldn't produce results significantly better than 7zip defaults no matter what I did. I'm still convinced that some compression is better than none. –  AndrejaKo Aug 20 '10 at 10:48
If you could save that much space, then there's probably work that could be done with the PDFs themselves to save almost all of that space without 7-Zip. A trip through Acrobat's PDF Optimizer can work wonders. –  afrazier Aug 21 '10 at 19:17

Try precomp - it first decompresses the already compressed data inside of your pdf's. Then 7z can do its magic on uncompressed data.

Also try nanozip which I have verified to be very effecive yet very efficient (400kb/s at compression rations of PAQ algorithms).

share|improve this answer

lzma compression is the best because you can make an sfx file or an msi package with a high compression ratio. in your case you are not compressing a big file so the diffrence is quite small especially if the file has been compressed such as: mp3 or png

try win arc it is free and gives a gret compression ratio

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.