ect: refresh (#5717)

manned-org
bl-ue 2021-04-10 15:39:06 -04:00 committed by GitHub
parent c30eb1d8b2
commit 2da2632f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 6 deletions

View File

@ -1,16 +1,25 @@
# ect # ect
> Efficient Compression Tool (or ECT) is a C++ file optimizer. It supports PNG, JPEG, GZIP and ZIP files. > Efficient Compression Tool.
> File optimizer written in C++. It supports `.png`, `.jpg`, `.gzip` and `.zip` files.
> More information: <https://github.com/fhanau/Efficient-Compression-Tool>. > More information: <https://github.com/fhanau/Efficient-Compression-Tool>.
- Compress a file: - Compress a file:
`ect {{filename.png}}` `ect {{path/to/file.png}}`
- Compress a file with the highest compression level and multithreading: - Compress a file with specified compression level and multithreading (1=Fastest (Worst), 9=Slowest (Best), default is 3):
`ect -9 --mt-deflate {{filename.png}}` `ect -{{9}} --mt-deflate {{path/to/file.zip}}`
- Compress all the files in a directory recursively, keeping the original modification time: - Compress all files in a directory recursively:
`ect -keep -recurse {{directory}}` `ect -recurse {{path/to/directory}}`
- Compress a file, keeping the original modification time:
`ect -keep {{path/to/file.png}}`
- Compress a file, stripping metadata:
`ect -strip {{path/to/file.png}}`