Re: Any zip or tgz that decompress to itself ?
- From: Olivier Girant <olivier.girant@xxxxxxxxxx>
- Date: Sat, 26 May 2007 13:14:57 +0200
Hans-Peter Diettrich wrote:
Olivier Girant wrote:
May be this has already been discussed before, i'm wondering if it is possible to create a zip or tgz file:
1/ if zip, contains a zip file
2/ if tgz, contains a tgz file
3/ the decompressed file has the same content as the original archive...
If such a file has been found, i'd be really interessed !!!
A chicken and egg problem ;-)
Since compressed files do not compress very well, I'd assume that a zipped zip will become longer, due to the added header etc. information. Most compressors refuse to compress an uncompressable file again, and instead switch to store mode, what obviously must result in a bigger output file.
DoDi
I don't agree with you. The zip header format is compressed and is not random data at all. One can take advantage of the potentially compressible header to have a zip file with the same size. It implies that the "incompressible" part size is not too high. I think that the difficulty is not to file size, but make the file respects the zip format with header and file list...
Olivier
.
- References:
- Any zip or tgz that decompress to itself ?
- From: Olivier Girant
- Re: Any zip or tgz that decompress to itself ?
- From: Hans-Peter Diettrich
- Any zip or tgz that decompress to itself ?
- Prev by Date: Re: Any zip or tgz that decompress to itself ?
- Next by Date: Re: Any zip or tgz that decompress to itself ?
- Previous by thread: Re: Any zip or tgz that decompress to itself ?
- Next by thread: Re: Any zip or tgz that decompress to itself ?
- Index(es):
Relevant Pages
|