tldr/pages/common/ect.md

26 lines
666 B
Markdown
Raw Normal View History

2019-04-28 12:17:03 +01:00
# ect
2021-04-10 20:39:06 +01:00
> Efficient Compression Tool.
> File optimizer written in C++. It supports PNG, JPEG, gzip and Zip files.
> More information: <https://github.com/fhanau/Efficient-Compression-Tool>.
2019-04-28 12:17:03 +01:00
- Compress a file:
2021-04-10 20:39:06 +01:00
`ect {{path/to/file.png}}`
2019-04-28 12:17:03 +01:00
2021-04-10 20:39:06 +01:00
- Compress a file with specified compression level and multithreading (1=Fastest (Worst), 9=Slowest (Best), default is 3):
2019-04-28 12:17:03 +01:00
2021-04-10 20:39:06 +01:00
`ect -{{9}} --mt-deflate {{path/to/file.zip}}`
2019-04-28 12:17:03 +01:00
2021-04-10 20:39:06 +01:00
- Compress all files in a directory recursively:
2019-04-28 12:17:03 +01:00
2021-04-10 20:39:06 +01:00
`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}}`