Files
tldr/pages.zh/common/ect.md

25 lines
627 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ect
> 高效压缩工具。
> 用C++编写的文件优化器。支持PNG、JPEG、gzip和Zip文件。
> 更多信息:<https://github.com/fhanau/Efficient-Compression-Tool>。
- 压缩文件:
`ect {{path/to/file.png}}`
- 使用指定的压缩级别和多线程压缩文件1=最快最差9=最慢最好默认是3
`ect -{{9}} --mt-deflate {{path/to/file.zip}}`
- 递归压缩目录中的所有文件:
`ect -recurse {{path/to/directory}}`
- 压缩文件,保持原始修改时间:
`ect -keep {{path/to/file.png}}`
- 压缩文件,去除元数据:
`ect -strip {{path/to/file.png}}`