Can I compress a RAR file again to reduce its size?

3

I had a 326 MB iso file that I compressed using WinRAR, with the best compression method. It got compressed to 144 MB.

I want to compress more and want it to be limited to something around 22 MB.

Is there a way I can compress the RAR file again? If not, is there any other way out?

Suhail Gupta

Posted 2012-03-31T06:53:58.793

Reputation: 1 655

2if all compressed file can be compressed again to reduce its size then we don't need storage at all since the size will become 0 eventually – phuclv – 2014-06-24T15:50:32.910

1As a real-world analogy, astronauts recycle their urine, and animals often eat what they've ahem already digested, but there is a limit to this imposed by (possibly geometrically/exponentially) diminishing returns -- otherwise, why would anything or anyone ever starve? In other words, entropy (not exclusively the Kolmogorov kind, which is especially apropos to file compression, but the (admittedly related) physical kind too) wins. – Vandermonde – 2015-12-14T07:27:53.160

What kind of data does the ISO file contain? Programs? Documents? Music? Video? – David Schwartz – 2012-03-31T06:55:47.683

@ David Schwartz It is a software CD,with autorun – Suhail Gupta – 2012-03-31T07:00:08.147

2It would be nice if we could compress compressed archives again and again. Every archive would be about 1 byte. – totymedli – 2013-05-01T08:19:22.623

Answers

10

If you've already compressed with best compression method, you can't compress further.. Few KB/MB could be digestible, but compressing 144MB compressed data to 22MB: No way!
I'd not say, its impossible. But.. Currently, there's no standard compression algorithm to do this. Sorry!

If 22MB is a limit somewhere (like cloud, storage), you can always use file splitters to split this 144MB file into multiple 22MB chunks. File Joiners (often, built-in with file splitters) reverse this process.

Apple II

Posted 2012-03-31T06:53:58.793

Reputation: 3 669

1From information theory there's a limit to how much can be compressed. You can't go beyond that. – slhck – 2012-03-31T07:51:11.687

4

I have a 42k archive that contains 4.5 petabyte of data when decompressed. http://en.wikipedia.org/wiki/Zip_bomb

– Zoredache – 2012-03-31T08:45:31.587

4@Zoredache You can't apply Zip Bomb example on practical files. Compression algorithms just remove repeating data. So, create a 10GB file fully filled with 1. Now, compress it. What do you expect? Again compress it to hunt down repeating compression meta data. Do it again-n-again. You'll definitely end up with a KB file. For sure, you can't apply this to practical files! – Apple II – 2012-03-31T10:00:07.893

1

That's correct. Zip bombs work same way: http://stackoverflow.com/a/1459776/577898 . Our everyday files can't be compressed with that compression ratio.

– None – 2012-03-31T18:14:42.923

why can't the winrar compress the already compressed file ? – Suhail Gupta – 2012-04-03T18:20:15.123

1@Suhail Its because compression algorithms fail to find redundant (repeated) bits from already compressed file. So, they can't replace anything with a small representation (this is how compression works).. – Apple II – 2012-04-03T19:00:45.663

@Zoredache can you tell me the method to do so ? – Suhail Gupta – 2012-05-14T12:58:41.647

1@SuhailGupta There's no special method here. You can download 42k zip bombs after a simple Google search. Unzip it. Again unzip one of zips. Don't unzip all, otherwise you'd run out of storage. In the last, you'd find text files. You can reverse engineer it to achieve that. – Apple II – 2012-05-14T16:36:39.100

2

Is there a way I can compress the RAR file again?

Again? No, see this question for why a compressed file cannot be compressed further. If anything, re-compressing an already compressed file may even increase the resulting file.

If not, is there any other way out?

Your best bet is to either tweak the WinRAR settings to the file you were trying to compressing, or to use a better compression algorithm. 7-Zip supports several different powerful algorithms, and by tuning them just right, you could potentially get a big increase in savings over RAR.

I usually like to keep everything set to the maximum (figure 1). It takes longer to compress, but it’s usually worth it.

You can also try nanozip. It is an experimental archiver (read alpha) and runs very slowly, but gives shockingly good compression most of the time.

Of course, as always, compression results will depend on your file(s). You said you are compressing an ISO which is essentially just the contents of the files with little file-system overhead. Depending on the nature of the files, you may get some decent compression, but if it is an installation disk, then the contents of the main software are likely already compressed, so you won’t get that much more from the remaining files.


Figure 1: 7-Zip settings set to maximum compression

7-Zip settings set to maximum compression

Synetech

Posted 2012-03-31T06:53:58.793

Reputation: 63 242

0

Well, I'd prefer using the best possible method for compression cause I've tried recompression of a file that I've compressed lightly. My file didn't changed it's size.

But when I've decompressed it and then recompressed it using the best method, then I came out with flying colors

So plz do the heaviest compression

Harshit Kumar Gupta

Posted 2012-03-31T06:53:58.793

Reputation: 1

0

If you have a PC with RAM higher than 3 GB and processor about 3 GHz, use KGB Archiver.

At maximum compression and PAQ6 algorithm you’ll be able to reduce a file's size to a fourth or fifth of the original – but it's a very slow process.

anik

Posted 2012-03-31T06:53:58.793

Reputation: 1

0

It might make a little more sense to look at why you can't compress it further. In an oversimplified statement, compression would work like this:

Document Pre-Compression (110 Characters):

this is a document that has not been compressed. After this document is compressed the length will be shorter. 

Same document, Post Compression (103 Characters):

1:this
2:document
3:compressed
1 is a 2 that has not been 3. After 1 2 is 3 the length will be shorter.

In this particular example, a moderate level of compression is applied, if you had more time (computer power) to count occurrences of words, you could increase the compression of this statement by pulling out the word "is". But even large amounts of CPU time can only compress documents a fraction further, leaps from 110 MB to 22 MB aren't possible unless there are a lot of things to replace in the first compression pass..

Luke

Posted 2012-03-31T06:53:58.793

Reputation: 1

-1

Well, of course we can't compress an already compressed file. But still, believe me. A compressed file is way better and cheaper deal than being held up with no compression.

If it's just a matter of storage problem then I suppose you must buy a new sdcard/pen drive or must delete unwanted items and copies.

And if it's a matter of uploading then I prefer using a Wi-Fi and leaving your phone undisturbed if it will take half hour or more to upload.

Harshit Kumar Gupta

Posted 2012-03-31T06:53:58.793

Reputation: 1

Welcome to SuperUser, the information in your answer is already present in another answer. You should have upvote that one instead posting your own. I realize you don't have enough reputation to do that, so wait until you do. – Vlastimil Ovčáčík – 2015-12-16T14:01:02.940

-5

First use the winrar to compress it with the best mode. Then archive it with 7zip. I tried it with gta sanandreas with a size 5.79 GB and after compression it got reduced to a memory of 12MB. Believe me, it's working.

Ashin

Posted 2012-03-31T06:53:58.793

Reputation: 1

Might work with PAQ (see other answer), sure as hell won’t work with 7-Zip and friends.

– Daniel B – 2014-06-24T15:40:58.097

I highly doubt that's possible. – slhck – 2014-06-24T15:47:15.953

It will work in rare cases. There are compression methods which can decrease size every time you compress the compressed file (PAQ was mentioned by @DanielB). WinRAR and 7Zip don't use such methods by default. So the size can increase in place of decreasing while doing this.

– Jet – 2014-06-24T16:51:40.913