sorry if this is a faq but is it ever possible to compress a zip file?
i tried a few popular compressors but they all result in files
bigger than the original. just wondering if zip is the smallest
you can get.
thanks,
kevin
Kevin P Chugh <ch...@cs.buffalo.edu> wrote in article
<7vtiht$l41$1...@prometheus.acsu.buffalo.edu>...
Later,
-Shane
Kevin P Chugh wrote:
> sorry if this is a faq but is it ever possible to compress a zip file?
> i tried a few popular compressors but they all result in files
> bigger than the original. just wondering if zip is the smallest
> you can get.
>
> thanks,
> kevin
>sorry if this is a faq but is it ever possible to compress a zip file?
>i tried a few popular compressors but they all result in files
>bigger than the original. just wondering if zip is the smallest
>you can get.
Applying normal compression algorithms to a zip file usually won't
help much. But you could use a specialised algorithm something like
the following
1) Identify the version of zip used to encode the file (probably
difficult).
2) Separate "side" info (filenames, security permissions, other file
flags) from the compressed file data.
3) Extract the files
4) Place side info and zip version id in another file
5) Compress the whole lot using a better compressor (bzip2, szip, ace,
...)
If you identified the zip version correctly, and collected all side
information, it should be possible to completely reconstruct the
original zip.
-- Mat.
Kevin P Chugh schrieb:
> sorry if this is a faq but is it ever possible to compress a zip file?
> i tried a few popular compressors but they all result in files
> bigger than the original. just wondering if zip is the smallest
> you can get.
>
> thanks,
> kevin
Zip is not smallest you can get, but is is very fast for good compression
result. The reason why the result are bigger is that all normal compressor
are looking for the same properties...Run lenghts, patterns thats repeat,
are some of them. If you have another compression algorythmn, can get it
smaller.
Sascha
Not really - zip deflate includes statistics-based compression
aswell (huffman) What you're probably compressing is the zip
file headers, and directory information.
Cheers,
Phil