From 2da2632f225f7dc9ac501fe9806ec78e714ee30c Mon Sep 17 00:00:00 2001 From: bl-ue <54780737+bl-ue@users.noreply.github.com> Date: Sat, 10 Apr 2021 15:39:06 -0400 Subject: [PATCH] ect: refresh (#5717) --- pages/common/ect.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pages/common/ect.md b/pages/common/ect.md index ff77d9ed6..07dc393cc 100644 --- a/pages/common/ect.md +++ b/pages/common/ect.md @@ -1,16 +1,25 @@ # 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: . - 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}}`