LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ect

lossless image compression optimizer

TLDR

Optimize PNG file
$ ect [image.png]
copy
Optimize with maximum compression
$ ect -9 [image.png]
copy
Optimize multiple files
$ ect [*.png]
copy
Optimize recursively
$ ect -recurse [directory]
copy
Preserve modification time
$ ect -keep [image.png]
copy
Strip metadata for smallest size
$ ect -strip [image.png]
copy
Optimize JPEG losslessly
$ ect [image.jpg]
copy

SYNOPSIS

ect [options] files...

DESCRIPTION

ECT (Efficient Compression Tool) losslessly optimizes PNG, JPEG, and gzip files for smaller sizes. It achieves better compression than many alternatives while remaining lossless.The tool combines multiple compression strategies to reduce file sizes without quality loss. For PNG, it optimizes filters and DEFLATE compression. For JPEG, it optimizes Huffman tables.ECT is useful for web optimization, reducing bandwidth and storage while maintaining perfect image quality.

PARAMETERS

FILES

Image files to optimize.
-1 to -9
Compression level (1 = fast, 9 = slowest/strongest). Default is -3.
-recurse
Process directories recursively.
-keep
Preserve file modification time.
-strip
Strip metadata (EXIF, comments, color profiles).
-progressive
Encode JPEGs as progressive.
-gzip
Optimize gzip files instead of treating them as images.
-zip
Optimize ZIP archives.
-quiet
Suppress non-error output.
--mt-deflate[=N]
Multithread the deflate stage; optionally pin to N threads.
--mt-file[=N]
Process multiple input files in parallel.
-help
Display help information.

INSTALL

yay -S ect
copy

CAVEATS

High compression levels are very slow (level 9 may take minutes per image). Files are rewritten in place. Use -strip if you need the absolute smallest output, since metadata is kept by default.

HISTORY

ECT was developed as a high-performance lossless image optimizer, combining techniques from multiple compression tools (zopfli, optipng, etc.) into an efficient single tool.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid