Tarfile .bz2

"Martin v. Löwis" martin at v.loewis.de
Tue Dec 12 01:04:23 EST 2006


Jordan schrieb:
> Not really on topic anymore but what's the method for tar.gz? 

It works like .tar.bz2, except that it uses gzip (www.gzip.org)
as the compression library. The underlying compression algorithm
is LZW.

> And
> even more off the topic, does anyone know a good lossless compression
> method for images (mainly .jpg and .png)?

Well, .jpg files are already compressed in a lossy way (.jpg is
inherently lossy); to compress it further, you need to increase
the loss. PNG is also compressed already, see

http://www.mywebsite.force9.co.uk/png/

The compression algorithm inside PNG is zlib (which is the same
as the gzip algorithm). Perhaps you should read the comp.compression
FAQ:

http://www.faqs.org/faqs/compression-faq/

Regards,
Martin



More information about the Python-list mailing list