有沒有辦法讀取壓縮存檔的屬性? (Is there any way to read the properties of a Compressed Archive?)


問題描述

有沒有辦法讀取壓縮存檔的屬性? (Is there any way to read the properties of a Compressed Archive?)

Are there any tool / simple method to read the properties (Ex : Compression level, Dictionary size, word size etc)?


參考解法

方法 1:

If you want to get the properties of a .Zip archive, you can try my Zip-Parser. It is written in Perl and you may have to install some modules.

Remember to comment out 'Compressed Data' in zip_parser.conf by prepending with a #, else you will be printing lots of compressed data.

方法 2:

To uncompress, modify, recompress, zip and unzip should be all you need on any Unix platform.  On Windows I'm not up to date, but at one time the best version was PKZIP (but you may have to pay for that).  Certainly cygwin should include zip and unzip; I don't know about mingw.

方法 3:

In python, the tarfile and zipfile modules provide support for gzipped/bzipped tar files and zip files respectively save for multi-disk zipfiles, which are not yet supported. 

(by Chathuranga ChandrasekaraAlan Haggai AlaviNorman Ramseyhd1)

參考文件

  1. Is there any way to read the properties of a Compressed Archive? (CC BY-SA 3.0/4.0)

#compression #zip






相關問題

CSS 壓縮和組合 / js 縮小 - 在運行時或構建時更好? (CSS compression & combining / js minification - Better to do at runtime or at build time?)

在javascript中壓縮包含音頻PCM數據的blob (compress blob containing audio PCM data in javascript)

如何提高@font-face 的加載性能 (How to improve loading performance of @font-face)

ServiceStack 流壓縮 (ServiceStack Stream Compression)

有沒有辦法讀取壓縮存檔的屬性? (Is there any way to read the properties of a Compressed Archive?)

德爾福 2009 中的 Zlib (Zlib in Delphi 2009)

SQL 2008開啟頁面壓縮後如何回收空間? (How to reclaim space after turning on page compression in SQL 2008?)

本機 Lua 中的高效可變字節數組 (Efficient mutable byte array in native Lua)

在 JavaScript 中壓縮純文本? (Compressing plaintext in JavaScript?)

如何遞歸壓縮文件夾? (How to zip a folder recursively?)

使用 GZIPOutputStream 壓縮字符串 (Compressing a string using GZIPOutputStream)

壓縮後 1 KB 可以容納多少文本? (How much text I can fit in 1 kilobyte with compression?)







留言討論