Liste des Groupes | Revenir à col misc |
Hi, I'm interested in writing a script that will:Difficult to estimate compression ratio without analyzing the entire file. In theory you could say something based on the file type, but that's the best I can come up with.
>
1. Find and compress files recursively
2. After the first 5 seconds of compressing, if the compression ratio >1 (i.e. the compressed file will be larger than the uncompressed file), it tries another compression algorithm.
3. If the other compression algorithm still has a ratio >1, it tries another algorithm, until a list is exhausted.
4. If the list is exhausted, it skips compressing that file.
>
Any suggestions on how to proceed?
>
Les messages affichés proviennent d'usenet.